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

Re: a few issues



> Hello ,
>
> I have  questions
>
> 1)when I use the gq as gui to admin my LDAP server, I get the following
> message "could not bind to LDAP connection to 'example.com' .Invalid DN
> syntax".
> Does any one have an idea what is wrong here.?

The message is self explanatory: the DN you use to bind is incorrect.  To
get further help you should post that DN.

>
> 2)when I add
> dn: ou=Group,dc=example,dc=com
> ou: Group
> objectClass: organizationalUnit
> objectClass: top
>
> dn: cn=root,ou=Group,dc=example,dc=com
> cn: root
> objectClass: posixGroup
> objectClass: top
> gidNumber: 0
> memberUid: 0
>
> dn: cn=users,ou=Group,dc=example,dc=com
> cn: users
> objectClass: posixGroup
> objectClass: top
> gidNumber: 5000
> memberUid: asuffield
> memberUid: test
> memberUid: test2
>
> dn: cn=admin,ou=Group,dc=example,dc=com
> cn: admin
> objectClass: posixGroup
> objectClass: top
> gidNumber: 5001
> memberUid: asuffield
> &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
> the slapd -t command would give the following

It appears that "slapd -t" is actually testing the LDIF file.  "slapd -t"
is intended to check the correctness of slapd.conf, i.e. of the
configuration, not of LDIF.  There's no LDIF checker, to my knowledge,
except ldapadd.

p.

>
> /etc/ldap/slapd.conf: line 36: unknown directive "dn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 37: unknown directive "ou:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 38: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 39: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 41: unknown directive "dn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 42: unknown directive "cn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 43: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 44: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 45: unknown directive "gidNumber:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 46: unknown directive "memberUid:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 48: unknown directive "dn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 49: unknown directive "cn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 50: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 51: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 52: unknown directive "gidNumber:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 53: unknown directive "memberUid:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 54: unknown directive "memberUid:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 55: unknown directive "memberUid:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 57: unknown directive "dn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 58: unknown directive "cn:" in bdb database
> definition (ignored)
> /etc/ldap/slapd.conf: line 59: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 60: unknown directive "objectClass:" in bdb
> database definition (ignored)
> /etc/ldap/slapd.conf: line 61: unknown directive "gidNumber:" in bdb
> database
> definition (ignored)
> /etc/ldap/slapd.conf: line 62: unknown directive "memberUid:" in bdb
> database
> definition (ignored)
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%
> my slapd.conf
> %%%%%%%%%%%%%%%%%%%%%%%%%%
> # slapd 2.1.30
> include         /etc/ldap/schema/core.schema
> include         /etc/ldap/schema/cosine.schema
> include         /etc/ldap/schema/nis.schema
> include         /etc/ldap/schema/inetorgperson.schema
> include  /etc/ldap/schema/misc.schema
> include  /etc/ldap/schema/java.schema
> include  /etc/ldap/schema/corba.schema
> include  /etc/ldap/schema/openldap.schema
>
> pidfile         /var/run/slapd/slapd.pid
> argsfile        /var/run/slapd.args
> loglevel        0
> schemacheck on
> modulepath /usr/lib/ldap
> moduleload back_bdb
>
>
> binddn "cn=admin,dc=example,dc=com"
> bindpw secret
>
> ########## now we define the db directory directives ############
> backend  bdb
> database        bdb
> readonly off
>
> suffix  "dc=example,dc=com"
> directory       "/var/lib/ldap"
> index cn,sn,uid pres,eq,sub
> index objectclass eq
> lastmod         on
>
> rootdn "cn=admin,dc=example,dc=com"
> rootpw secret
>
>
>
> access to attribute=userPassword
>         by dn.base="cn=admin,dc=example,dc=com" write
>         by anonymous auth
>         by self write
>         by * none
>
> access to dn.base="cn=admin,dc=example,dc=com" by * read
> access to *
>  by self write
>         by dn.base="cn=admin,dc=example,dc=com" write
>         by * read
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497