konfigurasi ldap kok "ldap_bind: Invalid credentials (49)" kenapa yah suhu ??

546 views
Skip to first unread message

ridwan maulana

unread,
Jan 21, 2009, 3:05:35 PM1/21/09
to id-u...@googlegroups.com
dear para suhu,
saya sedang konfigurasi ldap kok erorr ya "ldap_bind: Invalid credentials (49)" itu muncul setelah saya struktur direktory terus saya tambahkan di database ldap nya kok malah error kaya gitu yah,,,??

mungkin ada kaitanny dengan password yah,,,,
di slapd.conf sebelumnya tidak ada rootpw saya tambahkan kemudian rootdn nya saya enable kan,,,



Cecep Mahbub

unread,
Jan 21, 2009, 10:28:37 PM1/21/09
to id-u...@googlegroups.com
2009/1/22 ridwan maulana <molana....@gmail.com>:

invalid credentials itu, penyebabnya bisa karena salah password. bisa
juga karena salah menuliskan dn si user yg mo konek ke ldap

-cecep-

ridwan maulana

unread,
Jan 21, 2009, 10:58:01 PM1/21/09
to id-u...@googlegroups.com
2009/1/22 Cecep Mahbub <ce...@ngadimin.org>
udah bener deh kayanya passwordnya,,,,
 
maksudnya password pada saat awal konfigurasi kah ????
 
itu saya samakan dengan yang ada di slapd.conf,,,,
 
dn di user kayanya juga dah bener deh,,
 
mapp nie soalnya lagi ga di depan mesin linux,,,,

Cecep Mahbub

unread,
Jan 22, 2009, 2:23:51 AM1/22/09
to id-u...@googlegroups.com
2009/1/22 ridwan maulana <molana....@gmail.com>:

>> udah bener deh kayanya passwordnya,,,,
>>
>> maksudnya password pada saat awal konfigurasi kah ????
>>
>> itu saya samakan dengan yang ada di slapd.conf,,,,
>>
>> dn di user kayanya juga dah bener deh,,
>>
>> mapp nie soalnya lagi ga di depan mesin linux,,,,

passwordnya ya password user ybs.

jika menggunakan user yang di set sbg rootdn di slapd.conf ya masukkan
password spt yang dimasukkan di bagian rootpw di slapd.conf.

coba tuliskan cara ngetestnya bagaimana?
coba tuliskan juga slapd.conf nya

misal nih di slapd.conf

rootdn "cn=ldapadmin,dc=domain,dc=com"
rootpw {SSHA}passwordygdienkripsi

saya ngeceknya pake ldapsearch spt ini

ldapsearch -x -h localhost -b "dc=domain,dc=com" -D
"cn=ldapadmin,dc=domain.com,dc=com" -W uid=cecep.mahbub


-cecep-

ridwan maulana

unread,
Jan 22, 2009, 3:51:37 AM1/22/09
to id-u...@googlegroups.com


2009/1/22 Cecep Mahbub <ce...@ngadimin.org>
 
 
kebetulan saya masih di tempat kerja nie,,
 
tapi klo ga salah isi rootdn "cn=admin,dc=server,dc=rumah,dc=local" sedangakan
 rootpw ridwan1989,,,,,itu saya ambil dari slapd.conf,,,,
terus saya test dengan
ldapsearch -x -b "dc=server,dc=rumah,dc=local"
klo seperti itu bisa tapi saya lupa ouputnya apa ????  
 
nah ketika saya ingin tambah struktur direktorynya ke database ldap dengan
ldapadd -x -D "dc=server,dc=rumah,dc=local" -W -f base.ldif
 
baru deh keluar errornya,,,,
 
 
 

 

ridwan maulana

unread,
Jan 22, 2009, 11:27:16 AM1/22/09
to id-u...@googlegroups.com
2009/1/22 ridwan maulana <molana....@gmail.com>

sekarang errornya jadi,,,,
 
ldapadd: attributeDescription "dn": (possible missing newline after line 4 of entry "ou=Group,dc=server,dc=rumah,dc=local"?)
adding new entry "ou=Group,dc=server,dc=rumah,dc=local"
ldap_add: Type or value exists (20)
        additional info: objectClass: value #0 provided more than once
 nie isi base.ldif nya

#group, server.rumah.local
dn: ou=Group,dc=server,dc=rumah,dc=local
ou: Group
objectClass: top
objectClass: organizationalUnit
#people,server.rumah.local
dn: ou=People,dc=server,dc=rumah,dc=local
ou: People
objectClass: top
objectClass: organizationalUnit

sedangkan slapd.con nya

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile         /var/run/slapd/slapd.pid

# List of arguments that were passed to the server
argsfile        /var/run/slapd/slapd.args

# Read slapd.conf(5) for possible values
loglevel        0

# Where the dynamically loaded modules are stored
modulepath    /usr/lib/ldap
moduleload    back_bdb

# The maximum number of entries that is returned for a search operation
sizelimit 500

database        bdb

# The base of your directory in database #1
suffix          "dc=server,dc=rumah,dc=local"


 rootdn          "cn=admin,dc=server,dc=rumah,dc=local"
 rootpw  {SSHA}pXe0a1d1jFNo+cWytl0CpbYKeme3Qr1K
# rootpw saya tanbahin manual
directory       "/var/lib/ldap"

# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0

dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500

# Indexing options for database #1
index           objectClass eq

# Save the time that the entry gets modified, for database #1
lastmod         on
access to attrs=userPassword,shadowLastChange
        by dn="cn=admin,dc=server,dc=rumah,dc=local" write
        by anonymous auth
        by self write
        by * none


access to dn.base="" by * read


Reply all
Reply to author
Forward
0 new messages