[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Simple doubts with LDAP
Hi all,
I have a Debian GNU/Linux 2.2 server and I'm trying to install ldap for the first time.
I installed openldapd and openldap-utils packages.
My domain is: animus.com.br
Here are my config files:
# more /etc/openldap/sladp.conf
include /etc/openldap/slapd.at.conf
include /etc/openldap/slapd.oc.conf
schemacheck off
loglevel -1
database ldbm
suffix "dc=animus,dc=com,dc=br"
directory "/var/lib/openldap/animus"
rootdn "cn=Manager, dc=animus, dc=com, dc=br"
rootpw "secret"
index cn,sn,uid
index objectclass organization, person
index default none
access to * by * write
# more /etc/openldap/ldap.conf
BASE dc=animus, dc=com, dc=br
HOST ldap.animus.com.br
HOST localhost
PORT 389
SIZELIMIT 12
TIMELIMIT 15
DEREF never
# more /root/myldif.ldif
dn: dc=animus, dc=com, dc=br
dc: animus
o: Animus
objectclass: organization
objectclass: dcObject
dn: cn=Manager, dc=animus, dc=com, dc=br
cn: Manager
sn: Manager
objectclass: person
dn: cn=Suporte, dc=animus, dc=com, dc=br
cn: Suporte
sn: Suporte
objectclass: person
An here I'm trying to add something to LDAP but there is an error:
# ldapadd -D "cn=Manager, dc=animus, dc=com, dc=br" -w secret < myldif.ldif
ldapadd: no attributes to change or add (entry dc=animus, dc=com, dc=br dc: animus o: Animus objectclass: organization objectclass: dcObject)
# tail -f /var/log/syslog
May 27 17:17:52 make slapd[29344]: select activity on 1 descriptors
May 27 17:17:52 make slapd[29344]: new connection on 7
May 27 17:17:52 make slapd[29344]: conn=6 fd=7 connection from localhost (127.0.0.1) accepted.
May 27 17:17:52 make slapd[29344]: activity on:
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: listening for connections on 6, activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: before select active_threads 0
May 27 17:17:52 make slapd[29344]: select activity on 1 descriptors
May 27 17:17:52 make slapd[29344]: activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: read activity on 7
May 27 17:17:52 make slapd[29344]: listening for connections on 6, activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: before select active_threads 1
May 27 17:17:52 make slapd[29375]: do_bind
May 27 17:17:52 make slapd[29375]: do_bind: version 2 dn (cn=Manager, dc=animus, dc=com, dc=br) method 128
May 27 17:17:52 make slapd[29375]: conn=6 op=0 BIND dn="CN=MANAGER,DC=ANIMUS,DC=COM,DC=BR" method=128
May 27 17:17:52 make slapd[29375]: ==> ldbm_back_bind: dn: CN=MANAGER,DC=ANIMUS,DC=COM,DC=BR
May 27 17:17:52 make slapd[29375]: dn2entry_r: dn: "CN=MANAGER,DC=ANIMUS,DC=COM,DC=BR"
May 27 17:17:52 make slapd[29375]: => dn2id( "CN=MANAGER,DC=ANIMUS,DC=COM,DC=BR" )
May 27 17:17:52 make slapd[29375]: => ldbm_cache_open( "/var/lib/openldap/animus/dn2id.dbb", 66, 600 )
May 27 17:17:52 make slapd[29375]: <= ldbm_cache_open (cache 0)
May 27 17:17:52 make slapd[29375]: <= dn2id NOID
May 27 17:17:52 make slapd[29375]: dn2entry_r: dn: "DC=ANIMUS,DC=COM,DC=BR"
May 27 17:17:52 make slapd[29375]: => dn2id( "DC=ANIMUS,DC=COM,DC=BR" )
May 27 17:17:52 make slapd[29375]: => ldbm_cache_open( "/var/lib/openldap/animus/dn2id.dbb", 66, 600 )
May 27 17:17:52 make slapd[29375]: <= ldbm_cache_open (cache 0)
May 27 17:17:52 make slapd[29375]: <= dn2id NOID
May 27 17:17:52 make slapd[29375]: do_bind: bound "cn=Manager, dc=animus, dc=com, dc=br" to "cn=Manager, dc=animus, dc=com, dc=br"
May 27 17:17:52 make slapd[29375]: send_ldap_result 0::
May 27 17:17:52 make slapd[29375]: conn=6 op=0 RESULT err=0 tag=97 nentries=0
May 27 17:17:52 make slapd[29344]: select activity on 1 descriptors
May 27 17:17:52 make slapd[29344]: activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: read activity on 7
May 27 17:17:52 make slapd[29344]: listening for connections on 6, activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: before select active_threads 1
May 27 17:17:52 make slapd[29344]: select activity on 1 descriptors
May 27 17:17:52 make slapd[29344]: activity on:
May 27 17:17:52 make slapd[29344]: 7r
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: read activity on 7
May 27 17:17:52 make slapd[29344]: ber_get_next on fd 7 failed errno 0 (Success)
May 27 17:17:52 make slapd[29344]: *** got 0 of 0 so far
May 27 17:17:52 make slapd[29344]: conn=6 op=-1 fd=7 closed errno=0
May 27 17:17:52 make slapd[29344]: listening for connections on 6, activity on:
May 27 17:17:52 make slapd[29344]:
May 27 17:17:52 make slapd[29344]: before select active_threads 1
May 27 17:17:52 make slapd[29376]: do_unbind
May 27 17:17:52 make slapd[29376]: conn=6 op=1 UNBIND
TIA, Paulo Henrique.
--
Paulo Henrique B de Oliveira
Gerente de Operações - Linux Solutions - http://www.linuxsolutions.com.br
O maior conteúdo de Linux em língua portuguesa - OLinux - http://www.olinux.com.br
(21) 2526-7262 ramal 31