Hi I configure Samba3.0alpha21+openldap2.1.18 as PDC on FreeBSD 4.7. The trouble is - I can't add machine account to ldap using smbpasswd -m -a pc-241$ (Only users accounts adding cleanly) When try to add machine account I receive: mdb# ./smbpasswd -D256 -m -a pc-241$ Netbios name list:- my_netbios_names[0]="MDB" Trying to load: ldapsam:ldap://ldap.druzhba.com:389 Attempting to find an passdb backend to match ldapsam:ldap://ldap.druzhba.com:389 (ldapsam) Found pdb backend ldapsam (at pos 4) pdb backend ldapsam:ldap://ldap.druzhba.com:389 has a valid init ldapsam_search_one_user: searching for:[(&(uid=pc-241$)(objectclass=sambaAccount))] ldapsam_open_connection: ldap://ldap.druzhba.com:389 ldap_open_connection: connection opened ldap_connect_system: Binding to ldap server as "cn=Manager, dc=druzhba, dc=com" ldap_connect_system: succesful connection to the LDAP server The LDAP server is succesful connected ldapsam_search_one_user: Problem during the LDAP search: No such object ldapsam_search_one_user: Query was: , (&(uid=pc-241$)(objectclass=sambaAccount)) pdb_set_username: setting username pc-241$, was element 13 -> now SET pdb_set_full_name: setting full name Unprivileged user, was element 14 -> now SET pdb_set_unix_homedir: setting home dir /nonexistent, was NULL element 23 -> now SET pdb_set_domain: setting domain DRUZHBA, was element 15 -> now DEFAULT pdb_set_uid: setting uid 20001, was -1 element 1 -> now SET pdb_set_gid: setting gid 20000, was -1 element 2 -> now SET pdb_set_user_sid: setting user sid S-1-5-21-681823260-3793332419-842653367-41002 element 19 -> now SET pdb_set_user_sid_from_rid: setting user sid S-1-5-21-681823260-3793332419-842653367-41002 from rid 41002 tdb_pack(ddffd, 1024) -> 28 tdb_pack(d, 996) -> 4 tdb_pack(ddd, 992) -> 12 tdb_pack(ddd, 980) -> 12 tdb_pack(ddd, 968) -> 12 tdb_pack(ddffd, 1024) -> 19 tdb_pack(d, 1005) -> 4 tdb_pack(ddffd, 1024) -> 20 tdb_pack(d, 1004) -> 4 tdb_pack(ddffd, 1024) -> 25 tdb_pack(d, 999) -> 4 tdb_pack(ddffd, 1024) -> 31 tdb_pack(d, 993) -> 4 tdb_pack(ddffd, 1024) -> 30 tdb_pack(d, 994) -> 4 tdb_pack(ddffd, 1024) -> 29 tdb_pack(d, 995) -> 4 tdb_pack(ddd, 991) -> 12 tdb_pack(ddffd, 1024) -> 30 tdb_pack(d, 994) -> 4 tdb_pack(ddffd, 1024) -> 25 tdb_pack(d, 999) -> 4 tdb_pack(ddffd, 1024) -> 27 tdb_pack(d, 997) -> 4 tdb_pack(ddd, 993) -> 12 tdb_pack(ddd, 981) -> 12 tdb_pack(ddd, 969) -> 12 tdb_pack(ddffd, 1024) -> 26 tdb_pack(d, 998) -> 4 tdb_pack(ddffd, 1024) -> 27 tdb_pack(d, 997) -> 4 tdb_unpack(ddffd, 34) -> 30 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 29) -> 25 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 24) -> 20 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 67) -> 27 tdb_unpack(d, 40) -> 4 tdb_unpack(ddd, 36) -> 12 tdb_unpack(ddd, 24) -> 12 tdb_unpack(ddd, 12) -> 12 tdb_unpack(ddffd, 29) -> 25 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 30) -> 26 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 45) -> 29 tdb_unpack(d, 16) -> 4 tdb_unpack(ddd, 12) -> 12 tdb_unpack(ddffd, 68) -> 28 tdb_unpack(d, 40) -> 4 tdb_unpack(ddd, 36) -> 12 tdb_unpack(ddd, 24) -> 12 tdb_unpack(ddd, 12) -> 12 tdb_unpack(ddffd, 35) -> 31 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 31) -> 27 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 34) -> 30 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? tdb_unpack(ddffd, 23) -> 19 tdb_unpack(d, 4) -> 4 free_privilege: count=0, nothing to clear ? pdb_set_group_sid: setting group sid S-1-5-21-681823260-3793332419-842653367-41001 element 20 -> now SET pdb_set_group_sid_from_rid: setting group sid S-1-5-21-681823260-3793332419-842653367-41001 from rid 41001 element 21 -> now DEFAULT element 21 -> now CHANGED element 21 -> now CHANGED element 33 -> now CHANGED element 32 -> now CHANGED element 12 -> now CHANGED element 22 -> now CHANGED account_policy_get: maximum password age:1814400 element 11 -> now CHANGED ldapsam_search_one_user: searching for:[(&(uid=pc-241$)(objectclass=sambaAccount))] ldapsam_open: allready connected to the LDAP server ldapsam_search_one_user: Problem during the LDAP search: No such object ldapsam_search_one_user: Query was: , (&(uid=pc-241$)(objectclass=sambaAccount)) Failed to add entry for user pc-241$. Failed to modify password entry for user pc-241$ Thanks for any help.