Invalid credentials error
I have installed Openldap 2.4.31
$sudo slapcat -n0 I get the following print in console ...................................... olcRootDN: cn=admin,dc=nodomain ............................. ......................... olcRootPW:: e1NTSEF9akhVUWl3U2psMys3MTFjZVFoK3hFWEpVdy93dzVTa3c= ............................................ Now when I try to add a ldif file as per below command I get error ldapadd -D "cn=Manager,dc=example,dc=com" -w password@123 -f /home/tintin/ldif I get this error: ldap_bind: Invalid credentials (49) What is the issue ? how to fix this ? |
Hi,
Quote:
Code:
ldapadd -D "cn=admin,dc=nodomain" -w password@123 -f /home/tintin/ldif Regards |
Quote:
$ sudo ldapadd -D "cn=admin,dc=nodomain" -w password@123 -f /home/tintin/ldif adding new entry "dc=example,dc=com" ldap_add: Server is unwilling to perform (53) additional info: no global superior knowledge ldif ----------- dn: dc=example,dc=com dc: example description: My wonderful company objectClass: dcObject objectClass: organization o: Example, Inc. dn: ou=people, dc=example,dc=com ou: people description: All people in organisation objectclass: organizationalunit dn: cn=Robert Smith,ou=people,dc=example,dc=com objectclass: inetOrgPerson cn: Robert Smith cn: Robert J Smith cn: bob smith sn: smith uid: rjsmith userpassword: rJsmitH carlicense: HISCAR 123 homephone: 555-111-2222 mail: r.smith@example.com mail: rsmith@example.com mail: bob.smith@example.com description: swell guy ou: Human Resources What is the issue here ? Is there any fix to this ? |
Quote:
Your DIT is most likely "dc=nodomain", so replace any occurrences of "dc=example,dc=com" with "dc=nodomain" in the ldif you want to add in ldap. You need also remove the initial "dn: dc=nodomain", as it should be already added during the installation/reconfiguration of ldap |
1 Attachment(s)
Quote:
but it does not show homophone number and other details when I do a base search $ldapsearch -x -b "uid=skdas,cn=S K Das,ou=people,dc=nodomain" # extended LDIF # # LDAPv3 # base <uid=skdas,cn=S K Das,ou=people,dc=nodomain> with scope subtree # filter: (objectclass=*) # requesting: ALL # # search result search: 2 result: 32 No such object matchedDN: cn=S K Das,ou=people,dc=nodomain # numResponses: 1 |
Quote:
Quote:
Code:
ldapsearch -x -b "cn=S K Das,ou=people,dc=nodomain" Regards |
All times are GMT -5. The time now is 10:13 AM. |