[Samba] migrating samba 2.2.8a PDC to 3.0.12 SID problem

aux aux at gawab.com
Thu Jul 7 14:43:57 GMT 2005


hi, i'm trying to migrate my samba 2.2.8a pdc to 3.0.12 pdc. I'm using 
ldap and i have already migrated all the data. Also i have executed 
convertSambaAccount for the new schema.

My problem is that I cannot set the old SID (samba 2.2.8) to the new 
samba 3.0.12 for that the clients can authentificate to pdc server.

samba2.2.8> smbpasswd -S LDAP
Successfully set domain SID to S-1-5-21-3984604316-2900431957-2958281145

samba3.0.12> net getlocalsid
SID for domain LDAP is: S-1-5-21-1591861398-1194458383-959792778

samba3.0.12> net setlocalsid S-1-5-21-3984604316-2900431957-2958281145
samba3.0.12> net getlocalsid
SID for domain LDAP is: S-1-5-21-1591861398-1194458383-959792778

why? the new SID does not keep

The smb.conf is the same, and i also run the command smbpasswd -w

My smb.conf (3.0.12):

         workgroup = LDAP
         server string = LDAP SERVER
         os level = 128
         time server = Yes
         unix extensions = Yes
         encrypt passwords = Yes
         add user script = /etc/samba/idealx/smbldap-useradd -m "%u"
         add machine script = /etc/samba/idealx/smbldap-useradd -w "%u"
         add group script = /etc/samba/idealx/smbldap-groupadd -p "%g"
         add user to group script = /etc/samba/idealx/smbldap-groupmod 
-m "%u" "%g"
         delete user from group script = 
/etc/samba/idealx/smbldap-groupmod -x "%u" "%g"
         set primary group script = /etc/samba/idealx/smbldap-usermod -g 
"%g" "%u"
         username map = /etc/samba/smbusers
         map to guest = Bad User
         include = /etc/samba/dhcp.conf
         logon path = \\%L\profiles\.msprofile
         logon home = \\%L\%U\.9xprofile
         logon drive = P:
         ;LDAP
         passdb backend = ldapsam:"ldap://127.0.0.1"
         ldap suffix = o=myroot
         ldap admin dn = cn=Manager, o=myroot
         ldap ssl = No
         hosts allow = 192.168. 127. localhost
         local master = yes
         preferred master = yes
         domain master = yes
         domain logons = yes
	[...]

thanks


More information about the samba mailing list