OK, I just figured out how to do it. My NT4 workstation is called "king". Use 'smbldap-useradd -w king' to add the posixAccount: king$. Then use 'smbpasswd -a -m king' to add the samba account. You will have # smbldap-usershow king$ dn: uid=king$,ou=Computers,dc=sunix,dc=com objectClass: top,inetOrgPerson,posixAccount,sambaSamAccount cn: king$ sn: king$ uid: king$ uidNumber: 1025 gidNumber: 515 homeDirectory: /dev/null loginShell: /bin/false description: Computer sambaSID: S-1-5-21-1242048156-3479289135-3828126537-3050 sambaPrimaryGroupSID: S-1-5-21-1242048156-3479289135-3828126537-2031 displayName: king$ sambaPwdCanChange: 1090385089 sambaPwdMustChange: 2147483647 sambaLMPassword: FE250117FB90641FAAD3B435B51404EE sambaNTPassword: 0FBD58B776542B3CB589E0D8F686A3A7 sambaPwdLastSet: 1090385089 sambaAcctFlags: [W ]
Then loginto NT4 and change its identification from workgroup to domain, without creating new account. Thanks anyway! ================================== "Kang Sun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Paul, > > Thank you for the help. Now I am back to my original question: I cannot add > NT4 machine to the samba domain! > > I tried to use the "Identification changes" from NT4 system to sign into the > domain, it said "The machine account for this computer does not exist or is > anaccessible. > > The log file said: > > [2004/07/20 21:46:47, 0] passdb/pdb_ldap.c:ldapsam_update_sam_account(1512) > > ldapsam_update_sam_account: failed to modify user with uid = king$, error: > modify/delete: sambaPrimaryGroupSID: no such value (Success) > > [2004/07/20 21:46:49, 0] passdb/pdb_ldap.c:ldapsam_delete_entry(271) > > ldapsam_delete_entry: Entry must exist exactly once! > > > > I tried 'smbldap-useradd -w King$'. It does not seem to add the > SambaSID. > > # smbldap-useradd -w king$ > # smbldap-usershow king$ > dn: uid=king$,ou=Computers,dc=sunix,dc=com > objectClass: top,inetOrgPerson,posixAccount > cn: king$ > sn: king$ > uid: king$ > uidNumber: 1023 > gidNumber: 515 > homeDirectory: /dev/null > loginShell: /bin/false > description: Computer > > Forcing creating a Samba account with option -a give me an error: > # smbldap-useradd -a -w king$ > Can't call method "get_value" on an undefined value at > /usr/sbin/smbldap-useradd line 152, <DATA> line 283. > > Using pdbedit also has problems: > # pdbedit -a -m -u king > ldapsam_add_sam_account: failed to modify/add user with uid = king$ (dn = > uid=king$,ou=Computers,dc=sunix,dc=com) > Unable to add machine! (does it already exist?) > > I started to think the add machine script must be wrong or something. > > -- Kang > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba