Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Nikos Voutsinas
Besides the fake entries of "requestsNameForDelete" and "requestsNameForInsert" -and their corresponding entries in iBatis sql mapping-, also the "createValues" and "defaultValues" were required in the dataset structure of lsc.xml. Also, the attribute name that is used by the dataset, should

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Clément OUDOT
2017-10-30 15:55 GMT+01:00 Nikos Voutsinas : > Clément, here are the config files, and the debug output from a single run: > > http://users.uoa.gr/~nvoutsin/lsc-userpassword-ds2db.config.tgz I'm not sure this is the reason, but I think you must define a value for

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Nikos Voutsinas
Clément, here are the config files, and the debug output from a single run: http://users.uoa.gr/~nvoutsin/lsc-userpassword-ds2db.config.tgz Nikos On Mon, Oct 30, 2017 at 3:21 PM, Clément OUDOT wrote: > 2017-10-30 14:18 GMT+01:00 Nikos Voutsinas : > >

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Clément OUDOT
2017-10-30 14:18 GMT+01:00 Nikos Voutsinas : > OK, got the gist of bin2string, however just by putting the dataset element > within the task, I get an NPE, no matter what the dataset is trying to do, > ie even when the following is used > > > userPassword > FORCE > "" > > >

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Nikos Voutsinas
OK, got the gist of bin2string, however just by putting the dataset element within the task, I get an NPE, no matter what the dataset is trying to do, ie even when the following is used userPassword FORCE "" That seems to me like side effect caused by the LDAP-2-DB flow. FYI, the actual value

Re: [lsc-users] LSC & password sync

2017-10-30 Thread Clément OUDOT
2017-10-30 13:01 GMT+01:00 Bruno Miguel Martins : > Hi guys, Hello Bruno, > > Trying to implement LSC in an environment (OpenLDAP to Active Directory) > where LDAP is not using PAM. Source passwords are encrypted by Linux > appliance. > > Have anyone here

[lsc-users] LSC & password sync

2017-10-30 Thread Bruno Miguel Martins
Hi guys, Trying to implement LSC in an environment (OpenLDAP to Active Directory) where LDAP is not using PAM. Source passwords are encrypted by Linux appliance. Have anyone here experienced something similar and can provide any hints? Storing clear text passwords may not be an option.

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Clément OUDOT
2017-10-30 10:46 GMT+01:00 Nikos Voutsinas : > Hello Clément, > > I've set the userPassword as binaryAttribute in lsc.xml, however nothing > changed. Ok, remove userPassword from binaryAttributes and try this javascript in your dataset to get the String value: var

Re: [lsc-users] userPassword from DS to DB

2017-10-30 Thread Clément OUDOT
2017-10-29 19:42 GMT+01:00 Nikos Voutsinas : > Hello, > > I am stuck with a rather common scenario of syncing a 'userPassword' from a > Directory Server to a Database. The problem is that the value of the source > LDAP attribute ends up in the corresponding column of the