Hi,
I have installed openLDAP on windows vista. i correctly configure
the openLDAP server. when i do the ladpadd &ldap search by using the
following commands
Commands:
ldapadd -x step1.ldif
ldapsearch -D “cn=shalini,dc=mips,dc=com” -w serverpwd -b
cn=shalini,ou=people,dc=mips,dc=com"
It shows the output like:
extended LDIF
LDAPv3
base <cn=shalini,ou=people,dc=mips,dc=com> with scope sub
filter: (objectclass=*)
requesting: ALL
shalini, people, mips.com
dn: cn=shalini,ou=people,dc=mips,dc=com
objectClass: inetOrgPerson
cn: shalini
cn: Robert J Smith
cn: bob smith
sn: shalini
uid:: c2hhbGluaQk=
userPassword:: c2hhbGluaSA=
carLicense: HISCAR 123
homePhone: 555-111-2222
mail: [email protected]
mail: [email protected]
mail: [email protected]
description: swell guy
ou: Human Resources
search result
search: 2
result: 0 Success
numResponses: 2
numEntries: 1
so from this output i guess i correctly created the Directory service
on openLDAP server. The error i faced is as follows. I opened the
script/console
and type the following commands
require ‘net/ldap’
[]
ldap=Net::LDAP.new
=>#<Net::LDAP:0io5bcpoi
@auth={:method=>:anonymous},@port=389,@encryption=nil,@host=127.0.0.1,@verbose=false,@base=“dc=com”,@openconnection=nil)
ldap.auth(“[email protected]”,“shalini”)
=> {:password =>“shalini”,:username =>“[email protected]”,:method
=>simple}
ldap.bind
false
so what i miss here? can anyone please help me to solve this problems.