PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : LDAP geht nicht (bitte mal lesen)



malburg
11.04.01, 07:02
Ich weiss, es gibt hier nicht all zu viele Fragen zu LDAP aber ich muss jetzt mal ein stellen.

Also ich habe mir das openldap 2.0.7 packt gezogen und folgendermassen compiliert

./configure --exec-prefix=/ --mandir=/usr/share/man --sysconfdir=/etc

make depend
make
make install

hat alles wunderbar gklappt.

dann habe ich mir eine ldif datei geschrieben wo meine strucktur von der firma drinnsteht und sie mit ldapadd hinzugefügt.

Hat ebenfalls alles geklappt.

ABER wenn ich jetzt mit ldapsearch ein containerobject suchen will findert er gar nichts.

Habe mir dann auch noch ein PHP script prgrammiert was mir alle container anzeigen soll und da zeigt er mir auch nichts an.

------------------------------------------------
meine slapd.conf

# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.4 2000/08/26 17:06:18 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
referral ldap://10.144.1.220
#replica 10.144.1.220:389 crendentials=test

pidfile /usr/local/var/slapd.pid
argsfile /usr/local/var/slapd.args

# Load dynamic backend modules:
# modulepath //libexec/openldap
# moduleload back_ldap.la
# moduleload back_ldbm.la
# moduleload back_passwd.la
# moduleload back_shell.la

################################################## #####################
# ldbm database definitions
################################################## #####################

database ldbm
suffix "o=lrh, c=DE"
rootdn "cn=Manager, o=lrh, c=DE"
rootpw test
directory /usr/local/var/openldap-ldbm

defaultaccess none

access to attr="userpassword"
by self write
by * compare

access to *
by self write
by dn=".+" read
by * none

access to *
by dn="^$$" none
by * read
--------------------------------------------

meine ldif datei

--------------------------------------------
dn: o=lrh, c=DE
o: lrh
l: Potsdam
streetaddress: XXXXXXXXXXXXX
postalCode: 14467
telephonenummer: 0331-XXXX
objectclass: organization

dn: cn=Manager, o=lrh, c=DE
cn: Manager
sn: Manager
objectclass: person

dn: ou=azubi, o=lrh, c=DE
ou: azubi
objectclass: top
objectclass: organizationalUnit

dn: ou=angestellte, o=lrh, c=DE
ou: angestellte
objectclass: top
objectclass: organizationalUnit

dn: cn=Marcel Alburg, ou=azubi, o=lrh, c=DE
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Marcel Alburg
sn: Alburg
telephonenumber: 0177/2512XXX

dn: cn=Herr Tasucher, ou=angestellte, o=lrh, c=DE
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Herr Tauscher
sn: Tauscher

---------------------------------

Wenn sie hier unten angekommen sind bedanke ich mich schon mal fürs lesen.

THX M. ALburg

:confused: