Sure Clement. I have tried ldap search on AD and it returns below error while
looking for member's DN.
Jan 30 14:52:21 - ERROR - Error while adding entry
cn=demogrp2,dc=testrjil,dc=net in directory
:javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 0000054F:
SvcErr: DSID-031A120C, problem 5003 (WILL_NOT_PERFORM), data 0
]; remaining name 'cn=demogrp2'
Jan 30 14:52:21 - ERROR - Error while synchronizing ID
cn=demogrp2,dc=testrjil,dc=net: java.lang.Exception: Technical problem while
applying modifications to the destination
# Fri Jan 30 14:52:21 IST 2015
dn: cn=demogrp2,dc=testrjil,dc=net
changetype: add
member: sun.org.mozilla.javascript.NativeArray@46fd007c
cn: demogrp2
sAMAccountName: demotestgrp2
objectClass: group
objectClass: top
the code which I have tried is
var destDn = ldap.search("CN=Users", "(sAMAccountName=" + uid + ")");
uid I have passed is having correct value. Any idea?
-Hardik
-----Original Message-----
From: Clément OUDOT [mailto:[email protected]]
Sent: 30 January 2015 13:43
To: Hardik V Shah
Cc: lsc-userslsc-users
Subject: Re: [lsc-users] user add/remove to group in AD
2015-01-30 7:20 GMT+01:00 <[email protected]>:
> Hi Clement,
>
> My LSC and mysql (source service) setup is on one server and AD (destination
> service) is on another server. So I cannot find members from AD. But in my
> case, I want to sync members according to mysql db to Active directory.
I don't see the problem. LSC can search the member in AD with the configured
LDAP connection.
>
> Can you please update me on what below parameter will have value once
> it is successful? [ what ldap.getContextDn() will return? ]
>
> var destMemberDn = destDn.get(0) + "," + ldap.getContextDn();
ldap correspond the the destination LDAP connection, srcLdap correspond to the
source LDAP connection. Here you have MySQL as source, and AD as destination,
so use ldap object to query AD.
Clément.
"Confidentiality Warning: This message and any attachments are intended only
for the use of the intended recipient(s).
are confidential and may be privileged. If you are not the intended recipient.
you are hereby notified that any
review. re-transmission. conversion to hard copy. copying. circulation or other
use of this message and any attachments is
strictly prohibited. If you are not the intended recipient. please notify the
sender immediately by return email.
and delete this message and any attachments from your system.
Virus Warning: Although the company has taken reasonable precautions to ensure
no viruses are present in this email.
The company cannot accept responsibility for any loss or damage arising from
the use of this email or attachment."
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users