PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ldap einrichten was ist falsch



shb
02.05.04, 19:10
hi ich versuche einen ldap server zu konfiguieren aber ich glaub ich bin zu doof ich habe ein buch "Ldap unter Linux" und webmin und wenn ich die conf files erstelle will er nicht mehr starten. bitte helft mit ich habe ein conf file und 2 include files ich werde die mal hier posten und ich hoffe ihr könnt mir helfen
die sldap.conf
include /etc/openldap/sldap.at.conf
include /etc/openldap/sldap.oc.conf
pidfile /var/run/sldap.pid
argsfile /var/run/sldap.args
loglevel 256
schemacheck on
sizelimit 500
timelimit 3600

#
#Datenbank
#

database ldbm
lastmod off
cachsize 1000
dbcachesize 100000

directory /var/lib/ldap
suffix "o=Intern"

rootdn "cn=Admin, o=Intern"
rootpw {CRYPT}zs0QLoUVZvS6E

#
#Replica
#

#
#Rechte
#

defaulttaccess read

access to attr=userPassword by self write by * none
access to attr=telephoneNumber by self write by * read
access to dn="cn=Admin,o=Intern" by * none
access to * by * read
#eof

die slapd.at.conf

attribute photo bin
attribute personalsignature bin
attribute jpegphoto bin
attribute audio bin
attribute labeleurl ces
attribute ref ces
attribute userpassword ces
attribute telephonenumber tel
attribute facsimiletelephonenumber fax tel
attribute pagertelefonenumber pager tel
attribute homephone tel
attribute mobiletelefonenumber handy tel
attribute aliasedObjectName dn
attribute member dn
attribute owner dn
attribute seealso dn
attribute manager dn
attribute documentauthor dn
attribute secretary dn
attribute lastmodifiedby dn
attribute associatedname dn
attribute naminglink dn
attribute reciprocalnaminglink dn

und hier noch die slapd.oc.conf

objectclass organization
requires
objectClass,
o
allows
businessCategory,
description

objectclass organizationUnit
requires
objectClass,
ou
allows
businessCategory

objectclass person
requires
objectClass,
sn,
cn
allows
description,
seeAlso,
telephonenumber,
userPassword
objectclass referral
requires
ref,
objectClass

ich hoffe ihr könnt mir helfen, ich verzeifle bald.

cu SHB

CYP
02.05.04, 19:15
welche fehler meldung gibts denn ?

siehe:

slapd -t -d 64

(bei mir ist die datei slapd unter /usr/lib/openldap)

shb
02.05.04, 19:35
hier ist die meldung
[root@shb openldap]# slapd -t -d 64
bdb_initialize: Sleepycat Software: Berkeley DB 4.1.25: (December 19, 2002)
reading config file /etc/openldap/slapd.conf
line 1 (include /etc/openldap/slapd.at.conf)
reading config file /etc/openldap/slapd.at.conf
line 1 (attribute photo bin)
/etc/openldap/slapd.at.conf: line 1: old attribute type format not supported.
line 2 (attribute personalsignature bin)
/etc/openldap/slapd.at.conf: line 2: old attribute type format not supported.
line 3 (attribute jpegphoto bin)
/etc/openldap/slapd.at.conf: line 3: old attribute type format not supported.
line 4 (attribute audio bin)
/etc/openldap/slapd.at.conf: line 4: old attribute type format not supported.
line 5 (attribute labeleurl ces)
/etc/openldap/slapd.at.conf: line 5: old attribute type format not supported.
line 6 (attribute ref ces)
/etc/openldap/slapd.at.conf: line 6: old attribute type format not supported.
line 7 (attribute userpassword ces)
/etc/openldap/slapd.at.conf: line 7: old attribute type format not supported.
line 8 (attribute telephonenumber tel)
/etc/openldap/slapd.at.conf: line 8: old attribute type format not supported.
line 9 (attribute facsimiletelephonenumber fax tel)
/etc/openldap/slapd.at.conf: line 9: old attribute type format not supported.
line 10 (attribute pagertelefonenumber pager tel)
/etc/openldap/slapd.at.conf: line 10: old attribute type format not supported.
line 11 (attribute homephone tel)
/etc/openldap/slapd.at.conf: line 11: old attribute type format not supported.
line 12 (attribute mobiletelefonenumber handy tel)
/etc/openldap/slapd.at.conf: line 12: old attribute type format not supported.
line 13 (attribute aliasedObjectName dn)
/etc/openldap/slapd.at.conf: line 13: old attribute type format not supported.
line 14 (attribute member dn)
/etc/openldap/slapd.at.conf: line 14: old attribute type format not supported.
line 15 (attribute owner dn)
/etc/openldap/slapd.at.conf: line 15: old attribute type format not supported.
line 16 (attribute seealso dn)
/etc/openldap/slapd.at.conf: line 16: old attribute type format not supported.
line 17 (attribute manager dn)
/etc/openldap/slapd.at.conf: line 17: old attribute type format not supported.
line 18 (attribute documentauthor dn)
/etc/openldap/slapd.at.conf: line 18: old attribute type format not supported.
line 19 (attribute secretary dn)
/etc/openldap/slapd.at.conf: line 19: old attribute type format not supported.
line 20 (attribute lastmodifiedby dn)
/etc/openldap/slapd.at.conf: line 20: old attribute type format not supported.
line 21 (attribute associatedname dn)
/etc/openldap/slapd.at.conf: line 21: old attribute type format not supported.
line 22 (attribute naminglink dn)
/etc/openldap/slapd.at.conf: line 22: old attribute type format not supported.
line 23 (attribute reciprocalnaminglink dn)
/etc/openldap/slapd.at.conf: line 23: old attribute type format not supported.
line 2 (include /etc/openldap/slapd.oc.conf)
reading config file /etc/openldap/slapd.oc.conf
line 7 (objectclass organization requires objectClass, o allows businessCategory, description)
/etc/openldap/slapd.oc.conf: line 7: old objectclass format not supported.
line 14 (objectclass organizationUnit requires objectClass, ou allows businessCategory)
/etc/openldap/slapd.oc.conf: line 14: old objectclass format not supported.
line 25 (objectclass person requires objectClass, sn, cn allows description, seeAlso, telephonenumber, userPassword)
/etc/openldap/slapd.oc.conf: line 25: old objectclass format not supported.
line 29 (objectclass referral requires ref, objectClass)
/etc/openldap/slapd.oc.conf: line 29: old objectclass format not supported.
line 3 (pidfile /var/run/sldap.pid)
line 4 (argsfile /var/run/sldap.args)
line 5 (loglevel 256)
line 6 (schemacheck on)
line 7 (sizelimit 500)
line 8 (timelimit 3600)
line 14 (database ldbm)
line 15 (lastmod off)
line 16 (cachesize 1000)
line 17 (dbcachesize 100000)
line 19 (directory /var/lib/ldap)
line 20 (suffix "o=Intern")
/etc/openldap/slapd.conf: line 20: suffix DN is invalid
config check failed
slapd stopped.
connections_destroy: nothing to destroy.

den ersten fehler konnte ich beheben da war der include file falsch
und danach erhielt ich den fehler könnt ihr mir helfen
cu SHB

CYP
02.05.04, 19:43
du hast wohl openldap 2.x aber die konfig files kommen von 1.x

das klappt wohl nicht

kannst ja mal hier schaun
http://www.linux-magazin.de/Artikel/ausgabe/2001/05/openldap/openldap.html

shb
02.05.04, 20:02
aha danke ich werds mal damit versuchen und meld mic bestimmt morgen dann wieder

cu SHB

mamue
02.05.04, 20:08
Das Buch "ldap unter Linux" kannst Du gleich wieder beiseite legen, denn es ist völlig veraltet. Es gibt keine .oc und .at Dateien mehr, sondern .schema Dateien, in denen sowohl die Objectclasses als auch die Attribute definiert werden (auf andere Art, als noch für Version 1).

mamue

shb
02.05.04, 20:32
die seite ist zwar gut und auch verständlich aber hier sind zwei einträge
include /etc/openldap/slapd.at.conf
include /etc/openldap/slapd.oc.conf
was die machen ist klar die binden eine externe datei ein aber es ist kein listing aufgeführt was in den dateien drine steht kann mir da jemand weiter helfen?

und wie ich gerade gelesen hab ist es veraltet, wo krieg ich was besseres her (also buch)


cu SHB

CYP
02.05.04, 20:45
mist da hab ich wohl nicht aufgepasst

ich hatte andere howto allerdings ist sie etwas umfangreicher also weiss ich nicht ob sie dir hilft

http://www.bayour.com/LDAPv3-HOWTO.html

shb
02.05.04, 20:55
ist das nicht für dei version3 von ldap? kann ich das auch für die 2er nehemen?

cu SHB

CYP
02.05.04, 21:01
mit der version 3 ist hier die version des protokolls gemeint

die anleitung an sich ist für openldap 2.x

shb
02.05.04, 21:41
super ich werde mich auch durch die anleitng durchschlagen aber da ich von natur faul wollte ich wissen ob es sowas auch in deutsch?

cu SHB

CYP
03.05.04, 09:01
ich hab zumindest keine gefunden -> aber hey so lernt man besten englisch