Global Security Forum

Security Global Forum

Our mission is to provide clients with an online user community of industry peers and IBM experts, to exchange tips and tricks, best practices, and product knowledge. We hope the information you find here helps you maximize the value of your IBM Security solutions.

 View Only
  • 1.  LDAP COnnect create user error from csv

    Posted 05/11/20 06:14 PM
    Edited by SHARATH YERAMALLA 05/11/20 06:51 PM
    Hi There,
    I have a project, where in I'm using an an LDAP Connector to add/update the users to LDAP thru reading users from an CSV file.
    Apparently,I've created an LDAP connector on AL and read the CV file, but not sure how to write it to LDAP. However, tried writing to LDAP ,got an error like LDAP object class violation, probably not able to write the data correctly to LDAP. Is there any document and sample AL that you could share for this exercise?. Thanks

    Below is the error 

    com.ibm.di.exceptions.NonFatalException: CTGDJQ026E The putEntry method failed because no distinguished name ($dn attribute) was specified in entry.
    17:07:39,012 INFO - CTGDIS100I Printing the Connector statistics.

    I can drag the $dn over to the work part, but how would the dn should look alike.Is there any sample AL that can import into my workspace?
    I know dn would be of the following format dn : uid=12343,ou=test,dc=abc,dc=com,  but with gave a try by  
    hard-cording the dn but didn't work got LDAP object class violation error. pls advice.



    ------------------------------
    Popleys
    ------------------------------


  • 2.  RE: LDAP COnnect create user error from csv

    Posted 05/12/20 05:52 AM

    Dear ,

    you need to pass required information to the LDAP Server to add entries in to  LDAP . If any attribute is going to be add be add in LDAP , need to make sure related objectlcass is also passed ...
     
    EX :--
    dn: cn=Larry Fine,ou=MemberGroupA,o=stooges
    ou: MemberGroupA
    cn: Larry Fine
    givenname: Larry
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: top
    mail: test@domain.com
    sn: Fine
    uid: larry
    uidNumber: 1001

    So , in flow section you need to generat $dn 
    $dn  return "dn: "+"uid="+conn.getString("uid")+",ou=test,dc=abc,dc=com"

    ​​

    ------------------------------
    Ranvijay Singh , IAM SME
    IBM , Pune
    ------------------------------



  • 3.  RE: LDAP COnnect create user error from csv

    Posted 05/13/20 09:49 AM
    Hi, I would like to learn more about security as a web cyber?
    Candida


    ------Original Message------

    Dear ,

    you need to pass required information to the LDAP Server to add entries in to  LDAP . If any attribute is going to be add be add in LDAP , need to make sure related objectlcass is also passed ...
     
    EX :--
    dn: cn=Larry Fine,ou=MemberGroupA,o=stooges
    ou: MemberGroupA
    cn: Larry Fine
    givenname: Larry
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    objectClass: top
    mail: test@domain.com
    sn: Fine
    uid: larry
    uidNumber: 1001

    So , in flow section you need to generat $dn 
    $dn  return "dn: "+"uid="+conn.getString("uid")+",ou=test,dc=abc,dc=com"

    ​​

    ------------------------------
    Ranvijay Singh , IAM SME
    IBM , Pune
    ------------------------------


  • 4.  RE: LDAP COnnect create user error from csv

    Posted 05/14/20 02:48 AM
    I am really having denial issue using my portal to attend to challenge  and other activities their in, I have reached out once to the admin, but, nobody seems to reply me.

    I can not access my any learning nor challenges on my security learning portal.
     Please some should help me out.

    ------------------------------
    Shakiru Arowogbadamu
    ------------------------------



  • 5.  RE: LDAP COnnect create user error from csv

    Posted 05/12/20 10:04 AM
    This might have the information you need:
    https://www.securitylearningacademy.com/enrol/index.php?id=132

    ------------------------------
    Elizabeth Hecht
    ------------------------------