Suppose -
your LDAP server is running on
ldap.yourcompany.com at port 389,
your rootDN is "cn=root, dc=yourCompany, dc=com" with password secret
&
your BaseDN is dc=yourCompany,
dc=com
To add
organization infopulse, do the following:
ldapadd -h ldap.yourcompany.com -p 389 -D "cn=root, dc=yourCompany, dc=com" -w secret << EOR
dn: o=infopulse, dc=yourCompany, dc=com objectclass:
organization
o: infopulse EOR
which results in the following message with entry
added:
adding new entry o=Finance, dc=datamain, dc=com
|