[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldap server



Hello,
i think my ldap server is running with following configurations:

slapd.conf:
----------------------------------
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/misc.schema

schemacheck     on

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

defaultaccess read

#access to attr=userPassword
#        by self write
#        by anonymous auth
#        by dn="cn=root,dc=linuxdomain,dc=es" write
#        by * read,

#access to *
#        by self read
#        by dn="cn=root,dc=linuxdomain,dc=es" write
#        by * read,

#access to dn="cn=root,dc=linuxdomain,dc=es"
#         by * none,

database        ldbm
suffix          "dc=linuxdomain,dc=es"

rootdn          "cn=root,dc=linuxdomain,dc=es"
rootpw          ldap
directory       /usr/local/var/openldap-ldbm

I put all the acl's in command because they give an error which i can't
solve

This is the ldap.conf file:
---------------------------------------
host 192.168.0.20
base dc=linuxdomain, dc=es

This is my ldif file:
--------------------------------------
dn: dc=linuxdomain,dc=es
o: linuxdomain.es
objectclass: top
objectclass: organization

dn: uid=gijs, dc=linuxdomain,dc=es
cn: Gijs Lemahieu
sn: Lemahieu
objectclass: person

dn: uid=wannes, dc=linuxdomain,dc=es
cn: Wannes Debusschere
sn: Debusschere
objectclass: person

dn: uid=stijn, dc=linuxdomain,dc=es
cn: Stijn Bal
sn: Bal
objectclass: person

when the  server is running i see this:
------------------------------------------
line 7 (schemacheck     on)
line 9 (pidfile         /usr/local/var/slapd.pid)
line 10 (argsfile        /usr/local/var/slapd.args)
line 12 (defaultaccess read)
line 28 (database        ldbm)
line 29 (suffix          "dc=linuxdomain,dc=es")
line 31 (rootdn          "cn=root,dc=linuxdomain,dc=es")
line 32 (rootpw          ldap)
line 33 (directory       /usr/local/var/openldap-ldbm)
slapd startup: initiated.
slapd starting
daemon: added 6r
daemon: added 7r
daemon: select: listen=6 active_threads=0 tvp=NULL
daemon: select: listen=7 active_threads=0 tvp=NULL

now there are some things that i don't understand very well.
1) how come that de acl give errors? the syntax is right or not?
2)When i run the command (  /usr/local/libexec/slapd -d -1 -h
"ldap://192.168.0.20:389
ldaps://192.168.0.20:636/" & ) then i don't get any errors but the program
doesn't run in the
background so i have to leave a window open all the time, is that normal?
3)when the ldap server is running and i open another konsole window to add
some data with this
command :
ldapadd -D "cn=root,o=linuxdomain.es" -w ldap -f
/usr/local/etc/openldap/linuxdomain2.es.ldif -x
then i get this as result
ldap_bind: Can't contact LDAP server
What is the problem here? And what could i do about it?

When i run the GQ program while the server is 'running' then i can the
schema but when i want to
browse i don't see anything.

Can anyone help me with this problems?
thanks in advance
Gijs

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net