[Date Prev][Date Next] [Chronological] [Thread] [Top]

Samba and OpenLDAP Filters (ITS#496)



Full_Name: Bruce Tenison
Version: 1.2.9
OS: Linux RH 6.2
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (216.85.74.42)


In trying to get Samba to authenticate against an OpenLDAP server, I get no
matches
against a filter such as: &(ntuid=goober)(objectclass=sambaaccount)

I tried this with ldapsearch and I get no matches, although I can filter with
ntuid=goober and get a match and objectclass=sambaacount and get MANY matches
(goober account included)

I don't believe that I'm doing anything wrong, but I could be, since I'm new to
this.

Here's an ldif entry for goober and the ldapsearch command line that I'm using.
dn: o=Reid State Technical College, c=US
o: Reid State Technical College
objectClass: organization

dn: uid=root,ou=People,o=Reid State Technical College, c=US
uid: root
cn: root
krbname: root@RSTC.CC.AL.US
objectClass: kerberosSecurityObject
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
sn: root
mail: root@rstc.cc.al.us
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
userPassword: {crypt}XXXXXXXXXXXX
shadowLastChange: 10725
shadowMax: 99999
shadowWarning: 7
shadowFlag: 134538444
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /home/root
gecos: root

dn: uid=goober,ou=People,o=Reid State Technical College, c=US
uid: goober
cn: Bruce Tenison Test Account
krbname: goober@RSTC.CC.AL.US
objectClass: kerberosSecurityObject
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
givenname: Bruce Tenison Test
sn: Account
mail: goober@rstc.cc.al.us
objectClass: account
objectClass: posixAccount
objectClass: sambaAccount
objectClass: shadowAccount
userPassword: {crypt}$XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
shadowLastChange: 11027
shadowMax: 99999
shadowWarning: 7
shadowInactive: -1
shadowExpire: -1
shadowFlag: 134550540
loginShell: /bin/bash
uidNumber: 1604
gidNumber: 1604
homeDirectory: /home/goober
gecos: Bruce Tenison Test Account
description: Samba User
ntuid: goober
lmPassword: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ntPassword: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
pwdLastSet: 38CA645F
smbHome: \\gate\goober
homeDrive: M
script: logon
profile: \\gate\goober\profile
workstations: ALL


ldapsearch -v -h ldap.server.org -D'cn=superuser, o=Reid State Technical
College, c=US' -b'o=Reid State Technical College, c=US'
'&(ntuid=goober)(objectclass=sambaaccount)' -W
ldap_init( ldap.server.org, 0 )
Enter LDAP Password: 
filter pattern: &(ntuid=goober)(objectclass=sambaaccount)
returning: ALL
filter is: (&(ntuid=goober)(objectclass=sambaaccount))
0 matches

(I've XXXX'd out the passwords and changed the cn=superuser and a different
hostname
for security reasons, but it's exactly the same, otherwise.)

Any ideas?

Thanks!