Hi,
sorry for the re-post, but could anybody helps me, how can I fix this problem?
On Wed, Aug 08, 2018 at 12:51:53PM +0200, Michael Ströder wrote:
On 8/8/18 12:46 PM, Ervin Hegedüs wrote:
On Wed, Aug 08, 2018 at 12:36:06PM +0200, Michael Ströder wrote:
*and* re-index the DB?
no. (never)
Please check whether the search (mail=foo@example.com) really returns the existing entries.
# slapcat -b cn=config | grep -i olcdbindex olcDbIndex: objectClass eq olcDbIndex: cn,uid eq olcDbIndex: uidNumber,gidNumber eq olcDbIndex: member,memberUid eq olcDbIndex: mail eq olcDbIndex: sn eq
# slapcat -b cn=config | grep -i overlay dn: olcOverlay={0}syncprov,olcDatabase={0}config,cn=config objectClass: olcOverlayConfig olcOverlay: {0}syncprov dn: olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config objectClass: olcOverlayConfig olcOverlay: {0}syncprov dn: olcOverlay={1}unique,olcDatabase={1}mdb,cn=config objectClass: olcOverlayConfig olcOverlay: {1}unique
# ldapsearch -vvv -x -H ldaps://dev-ldap-01:636 -b "dc=hu" -D "UID=_srvcppm,OU=Users,ou=_srv,dc=hu" -W "(mail=airween@company.hu)" ... # airween, Users, Administrator, service.customer.hu dn: uid=airween,ou=Users,ou=Administrator,dc=service,dc=customer,dc=hu uidNumber: 20001 gidNumber: 10000 ... sn: airween mail: airween@company.hu
# dgw_airween, Users, Partner, othercustomer.hu dn: uid=dgw_airween,ou=Users,ou=Partner,dc=othercustomer,dc=hu uidNumber: 11297 gidNumber: 21297 ... sn: dgw_airween mail: airween@company.hu
# search result search: 2 result: 0 Success
# numResponses: 3 # numEntries: 2
slapindex was finished (before I searched above...):
# service slapd stop # slapindex -F /etc/ldap/slapd.d -n 1 mail sn cn uidNumber uid
WARNING! Runnig as root! There's a fair chance slapd will fail to start. Check file permissions!
# chown -R openldap:openldap /etc/ldap/slapd.d && chown -R openldap:openldap /var/lib/ldap # service slapd start ...
Thanks,
a.