Discussion Locked

Using ldapadd to add new entry

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How do you add a new entry in an ldif file using LDAP? I have tried adding an entry but keeps returning the following error message:

ldap_bind: Invalid credentials (49)

I can perform ldapsearch and it will return results but I can't add a new entry.

Here is my ldif file for reference:

dn: dc=e2save, dc=com
objectclass: organization
objectclass: dcObject
o: e2save.com
dc: e2save

dn: ou=Marketing, dc=e2save, dc=com
objectclass: organizationalUnit
ou: Marketing

dn: ou=Creative, dc=e2save, dc=com
objectclass: organizationalUnit
ou: Creative

dn: ou=HR, dc=e2save, dc=com
objectclass: organizationalUnit
ou: HR

dn: ou=Customer Services, dc=e2save, dc=com
objectclass: organizationalUnit
ou: Customer Services

dn: cn=Abaid Rehman, ou=Sales, dc=e2save, dc=com
objectclass: add
objectclass: top
objectclass: person
objectclass: inetorgperson
objectclass: organizationalPerson
cn: Abaid Rehman
sn: Rehman
ou: Sales
mail: abaidr@e2save.com
description: Sales

# A leaf node
dn: cn=Andrew Vines, ou=Sales, dc=e2save, dc=com
objectclass: add
objectclass: top
objectclass: person
objectclass: inetorgperson
objectclass: organizationalPerson
cn: Andrew Vines
sn: Vines
ou: Sales
mail: andrewv@e2save.com
description: Sales

1 reply

by anty1

Thans for nice sharing....As a professional IT certification bibles provider, enjoys a wide rang of reputation among the IT learners and candidates. With the extension of its businessadopted series of innovative movements, some of which are the promotion of Points for gift and the marketing strategy of Affiliate Prsogram of it

This discussion is closed to new replies.