PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Posix Account einrichten in LDAP-Server, invalid credentiels?



403
16.04.02, 12:43
basis.ldif

dn: dc=firma,dc=com
objectclass: organization
o: firma

/etc/openldap/slapd.conf

include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/samba.schema
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
database ldbm
suffix "dc=firma,dc=com"
rootdn "cn=admin,dc=firma,dc=com"
#rootpw ****
rootpw {SSHA}KYnBQxEnT4u/MI1HXckgXpNBNxZguJk9
directory /var/lib/ldap
#defaultaccess none
index objectClass eq
loglevel 64
#access to attrs=userPassword,lmPassword,ntPassword
# by self write
# by * auth
#access to * by * read

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


/etc/openldap/ldap.conf


# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
#
# LDAP Defaults
#

# See ldap.conf(5) for details
# This file should be world readable but not world writable.

BASE dc=firma,dc=com
URI ldap://ldap.firma.com #ldap://ldap-master.firma.com:666

#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never


ldapadd -x -D dc=firma,dc=com -W < basis.ldif
Enter LDAP Password: ****
ldap_bind: Invalid credentials


Mein Plain txt PW geht nicht?
Habe schon in die Slapd.conf {Plain}****
reingeschrieben. Geht nicht?


Muss man vielleicht unterhalb von /var/lib/ldap
noch die Firma eintragen?

hat jemand einen ldap-server laufen?
bin schon ganz wirr




** Nach nächtlichen Erkundungen **

Immerhin, der root account aus dem Linux-mag /4/2002
geht ...aber DER ist ja kein POSIX Account


zwergserver:/etc/openldap # ldapadd -x -f basisdaten.ldif -w **** -D cn=Root,dc=firma,dc=com
adding new entry "uid=root,ou=Sysusers,ou=NSS,dc=firma,dc=com"
ldap_add: Undefined attribute type
additional info: rid: attribute type undefined

ldif_record() = 17

tigger555
25.04.02, 15:02
versuch es mal mit anderen parametern. also ich habe den befehl so genutzt und dann ging es.

ldapadd – h localhost –x –D „cn=Root,dc=firma,dc=org“ –W –f basisdaten.ldif
Dann fragt er nach dem Passwort was du in deiner slapd.conf angeben hast und dann fügt er deine Daten hinzu.
:)
cya