I'm following along in the Samba 3 By Example.pdf and on Page 190 it has me run: [root@gomer ~]# smbldap-useradd -m -a test2 No such object at /usr/sbin//smbldap_tools.pm line 473. I am running smbldap_tools .0.9.4 and I have ran configure.pm and set it up correctly. The stanza in the code of line 473: # all entries = does_sid_exist($sid,$config{scope}) sub does_sid_exist { my $sid = shift; my $dn_group=shift; my $mesg = $ldap->search ( base => $dn_group, scope => $config{scope}, filter => "(sambaSID=$sid)" #filter => "(&(objectClass=sambaSAMAccount|ob$ ); $mesg->code && die $mesg->error; #this is line 473 return ($mesg); } but I'm not sure why I am getting that error. (sambaSID=$sid) is populated in OpenLDAP: ldapsearch -x -b 'dc=gomer,dc=mdah,dc=state,dc=ms,dc=us' '(sambaSID=*)' |more # extended LDIF # # LDAPv3 # base <dc=gomer,dc=mdah,dc=state,dc=ms,dc=us> with scope subtree # filter: (sambaSID=*) # requesting: ALL # # ADMIN, gomer.mdah.state.ms.us dn: sambaDomainName=ADMIN,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us sambaAlgorithmicRidBase: 1000 sambaNextUserRid: 1000 gidNumber: 1000 sambaDomainName: ADMIN sambaSID: S-1-5-21-264571052-2849996808-2029774292 sambaNextRid: 1000 objectClass: top objectClass: sambaDomain objectClass: sambaUnixIdPool uidNumber: 1004 # root, Users, gomer.mdah.state.ms.us dn: uid=root,ou=Users,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us cn: root sn: root objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 0 uid: root uidNumber: 0 homeDirectory: /home/root sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaHomePath: \\GOMER\homes\root sambaHomeDrive: r: sambaProfilePath: \\GOMER\profiles\root sambaPrimaryGroupSID: S-1-5-21-264571052-2849996808-2029774292-512 sambaSID: S-1-5-21-264571052-2849996808-2029774292-500 loginShell: /bin/false gecos: Netbios Domain Administrator sambaPasswordHistory: 00000000000000000000000000000000000000000000000000000000 00000000 sambaLMPassword: xxxxxxxxxxxxxxxxxxxxxxxxx sambaAcctFlags: [U] sambaNTPassword: xxxxxxxxxxxxxxxxxxxxx sambaPwdLastSet: 1194277360 sambaPwdMustChange: 1194277360 shadowMax: 0 # nobody, Users, gomer.mdah.state.ms.us dn: uid=nobody,ou=Users,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us cn: nobody sn: nobody objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: sambaSamAccount objectClass: posixAccount objectClass: shadowAccount gidNumber: 514 uid: nobody uidNumber: 999 homeDirectory: /dev/null sambaPwdLastSet: 0 sambaLogonTime: 0 sambaLogoffTime: 2147483647 sambaKickoffTime: 2147483647 sambaPwdCanChange: 0 sambaPwdMustChange: 2147483647 sambaHomePath: \\GOMER\homes\nobody sambaHomeDrive: r: sambaProfilePath: \\GOMER\profiles\nobody sambaPrimaryGroupSID: S-1-5-21-264571052-2849996808-2029774292-514 sambaLMPassword: NO PASSWORDXXXXXXXXXXXXXXXXXXXXX sambaNTPassword: NO PASSWORDXXXXXXXXXXXXXXXXXXXXX sambaAcctFlags: [NUD ] sambaSID: S-1-5-21-264571052-2849996808-2029774292-2998 loginShell: /bin/false # Domain Admins, Groups, gomer.mdah.state.ms.us dn: cn=Domain Admins,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 512 cn: Domain Admins memberUid: root description: Netbios Domain Administrators sambaSID: S-1-5-21-264571052-2849996808-2029774292-512 sambaGroupType: 2 displayName: Domain Admins # Domain Users, Groups, gomer.mdah.state.ms.us dn: cn=Domain Users,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 513 cn: Domain Users description: Netbios Domain Users sambaSID: S-1-5-21-264571052-2849996808-2029774292-513 sambaGroupType: 2 displayName: Domain Users # Domain Guests, Groups, gomer.mdah.state.ms.us dn: cn=Domain Guests,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 514 cn: Domain Guests description: Netbios Domain Guests Users sambaSID: S-1-5-21-264571052-2849996808-2029774292-514 sambaGroupType: 2 displayName: Domain Guests # Domain Computers, Groups, gomer.mdah.state.ms.us dn: cn=Domain Computers,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 515 cn: Domain Computers description: Netbios Domain Computers accounts sambaSID: S-1-5-21-264571052-2849996808-2029774292-515 sambaGroupType: 2 displayName: Domain Computers # Administrators, Groups, gomer.mdah.state.ms.us dn: cn=Administrators,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 544 cn: Administrators description: Netbios Domain Members can fully administer the computer/sambaDom ainName sambaSID: S-1-5-32-544 sambaGroupType: 5 displayName: Administrators # Account Operators, Groups, gomer.mdah.state.ms.us dn: cn=Account Operators,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 548 cn: Account Operators description: Netbios Domain Users to manipulate users accounts sambaSID: S-1-5-32-548 sambaGroupType: 5 displayName: Account Operators # Print Operators, Groups, gomer.mdah.state.ms.us dn: cn=Print Operators,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 550 cn: Print Operators description: Netbios Domain Print Operators sambaSID: S-1-5-32-550 sambaGroupType: 5 displayName: Print Operators # Backup Operators, Groups, gomer.mdah.state.ms.us dn: cn=Backup Operators,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 551 cn: Backup Operators description: Netbios Domain Members can bypass file security to back up files sambaSID: S-1-5-32-551 sambaGroupType: 5 displayName: Backup Operators # Replicators, Groups, gomer.mdah.state.ms.us dn: cn=Replicators,ou=Groups,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us objectClass: top objectClass: posixGroup objectClass: sambaGroupMapping gidNumber: 552 cn: Replicators description: Netbios Domain Supports file replication in a sambaDomainName sambaSID: S-1-5-32-552 sambaGroupType: 5 displayName: Replicators # search result search: 2 result: 0 Success # numResponses: 13 # numEntries: 12 any suggestions?