LDAP - Manager field not getting populated

ericroberts
Tera Contributor

I have a new LDAP setup and the managers have never correctly loaded in.  One of our folks noticed that the incoming 'manager' field was being truncated...so he increased the default char size of the ldap_import table manager field to 160.  Manager is still not loading in. 

To try to isolate the issue I nuked all users from the sys_user table (except admin accounts) ... and now I am only pulling in 4 names from LDAP.  One manager (Sally) and 3 direct reports as defined in Active Directory and verified in LDAP.  (Joe, John, Bill).  I clean out the sys_user table...force a scheduled load of these 4 names...they come in fine.  But no manager field.  

In my transform map I have it set to Run script...and I even added the following code to the end of the script to prove it was firing:

target.u_usda_eauth_id_test='USDAEAUTHTESTID';

After the load of the LDAP records all users have this USDAEAUTHTESTID string in that field...so I assume 

ldapUtils.setManager(source, target);

is firing.  

Everything else is out of the box for onBefore, onStart and onComplete.  

I even tried running the ldapUtils.processManagers() in a Background Scripts window...it says it ran with no errors...but again, no managers.

gs.include("LDAPUtils");
var ldapUtils = new LDAPUtils();
//ldapUtils.setLog(log);
ldapUtils.processManagers();

Any ideas?

Thank you !!!

ER

PS: On a side note...where do I find ldapUtils to go look at how it works??

18 REPLIES 18

Mike Patel
Tera Sage

Try below, works fine for me.

find_real_file.png

As stated earlier....I already have this default code in place...my onComplete script looks exactly like this.

Can you also confirm, on import set table. Manager field is populated with LDAP location.

Hmmm sorry Mike...I am new to this and get quite lost and confused at how everything is wired together...I'm not exactly sure what you're asking me to verify.

I think you are asking me to go to System Definition / Tables.  Then sys_import_set ???

 I don't see a manager field in that table.  

 

Are you asking about the ldap_import table?  There is a manger field on that table...not sure how to check if the field is populated with LDAP location (which location?)

Sorry...

Thanks!

ER