Thanks a lot!!!!
slapindex uidNumbe Makes it work! > Hi, > I had faced similar issue once - the cause was the index on the attribute > was corrupt. > Reindexing solved the issue. > In your case, reindexing the uidnumber attribute should solve the issue. > > Amol. > > ----- Original Message ----- > From: Aitor Garcia Ortega - Tempel.es > Sent: 09/26/12 05:24 PM > To: [email protected] > Subject: Ldap search that must work > > I'm feeling som kind of stupid I'm running > openldap-servers-2.4.23-26.el6_3.2.x86_64 under Centos 6.3. Using > ldapsearch I get this result: ldapsearch -h localhost -x -b > 'o=Iddover,c=Net' '(uid=aitiddnet)' > # extended LDIF > # > # LDAPv3 > # > base <o=Iddover,c=Net> with scope subtree > # filter: (uid=aitiddnet) > # > requesting: ALL > # > > # aitiddnet, People, Iddover, Net > dn: > uid=aitiddnet,ou=People,o=Iddover,c=Net > uid: aitiddnet > cn: Aitor > Garcia Ortega - Iddover.net > objectClass: account > objectClass: > posixAccount > objectClass: top > objectClass: shadowAccount > > objectClass: inetLocalMailRecipient > userPassword:: ************** > > shadowLastChange: 14363 > shadowMax: 99999 > shadowWarning: 7 > uidNumber: > 546 > gidNumber: 546 > gecos: Aitor Garcia Ortega - Iddover.net > > mailLocalAddress: [email protected] > mailHost: localhost > > homeDirectory: /home/aitiddnet > loginShell: /bin/bash > > # search result > > search: 2 > result: 0 Success > > # numResponses: 2 > #! > numEntries: 1 But this seconf ldap serch don't work # ldapsearch -h > localhost -x -b 'o=Iddover,c=Net' '(uidNumber=546)' > # extended LDIF > # > > # LDAPv3 > # base <o=Iddover,c=Net> with scope subtree > # filter: > (uidNumber=546) > # requesting: ALL > # > > # search result > search: 2 > > result: 0 Success I really don't undertand. In another server with CentOS > release 5.6 (Final), openldap-servers-2.3.43-12.el5_6.7 and the same > database it works well... # ldapsearch -h localhost -x -b > 'o=Iddover,c=Net' '(uidNumber=546)' # extended LDIF # # LDAPv3 # base > <o=Iddover,c=Net> with scope subtree # filter: (uidNumber=546) # > requesting: ALL # # search result search: 2 result: 0 Success # > numResponses: 1 [root@r300te1 ~]# ldapsearch -h 172.16.6.1 -x -b > 'o=Iddover,c=Net' '(uidNumber=546)' # extended LDIF # # LDAPv3 # base > <o=Iddover,c=Net> with scope subtree # filter: (uidNumber=546) # > requesting: ALL # # aitiddnet, People, Iddover, Net dn: > uid=aitiddnet,ou=People,o=Iddover,c=Net uid: a! > itiddnet cn: Aitor Garcia Ortega - Iddover.net objectClass: account > objectClass: posixAccount objectClass: top objectClass: shadowAccount > objectClass: inetLocalMailRecipient userPassword:: ***************** > shadowLastChange: 14363 shadowMax: 99999
