I am using the LDAPWriter component to add an entry to the LDAPServer.
Modifying the existing attribute was successful.But facing problem when I am trying to add an entry.
No of records processed is 0.Graph executes successfully.
So in order to add an entry I am reading from a flat file using UniversalReaderComponent.
My question here is should we have to give the input to LDAPWriter in some specific format ?
Or is there some other way to achive this?
Following is my node code
Hello,
LDAPWriter requires at least two fields in input metadata for adding entries to LDAP:
dn - it’s a unique identifier of entry in LDAP hierarchy
objectClass - it specifies the type of entry in LDAP
The other fields in the input metadata depend on the value of objectClass field.
For example if the entry has objectClass=“person” then the fields cn and sn are also required. They are mandatory for “person” object. “Person” object has also several optional attributes: userPassword, telephoneNumber, seeAlso and description. These fields can be in the input metadata but they aren’t required.
For more information about mandatory and optional attributes of LDAP object, see LDAP documentation.
Thanks for that suggestion.
Can you clarify as to what kind of input files can I give to the input port of LDAPWriter
I mean should the file be a delimited or fixed or a ldif file?
Also is it we have use a ldif parser(custom java code or any) and then give the input to the LDAPWriter?
I got the solution for my problem.
I did made a point to keep the mandatory attributes.
I was successful in inserting the data to target LDAP
Thanks a ton for the reply