- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-11-2016 04:57 PM
users are imported correctly, have correct source value etc. and I do not have a map for the manager field..
I have added correct code to transform map and have expanded all relevant fields to 255 characters and validated their data type.
I could script around this so easily.. but it should just work!
I threw some logging into LDAPUtils:
setManager: function(source, target) {
var ge = source.getElement(this.manager);
if (!ge || ge.isNil()){
return;
}
this._getLdapUserUpdate();
var ldap = new GlideLDAPUserUpdate(); //what's the point of this.. never used..
var mid = this.ldapUserUpdate.getManagerValue(target, ge.toString());
if (mid == null) {
gs.logWarning("mid is null. Manager: "+ge.toString(),"LDAPUtils");
gs.logWarning("mid is null. Source: "+source,"LDAPUtils");
return;
}
target.manager = mid;
}
target.manager = mid;
},
The results are exactly as expected, not truncated, and matches another user's "source" field value..
mid is null. Source: [object GlideRecord]
mid is null. Manager: CN=Jimmy Hermo,OU=Users,OU=EXC,OU=CCRA,OU=CCR,DC=CCR,DC=local
Clearly it's calling the script include and not truncating.. so why is it not actually updating the user record?
Of course GlideLDAPUserUpdate source isn't described in the wiki/api. Anyone have that somewhere?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2016 11:38 AM
Solved!
When the transform was setup the user.source field was mapped to a value that contained the DN, but not to a field that contained the "ldap:" prefix.
So when I was evaluating:
this.ldapUserUpdate.getManagerValue(target, ge.toString());
What I didn't know that it filtered on an "ldap:" prefix when evaluating the source field.
The second attribute of getManagerValue() is:
<source> + <source UID>
ldap:CN=Jimmy Hermo,OU=Users,OU=EXC,OU=CCRA,OU=CCR,DC=CCR,DC=local
not this:
CN=Jimmy Hermo,OU=Users,OU=EXC,OU=CCRA,OU=CCR,DC=CCR,DC=local

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2017 12:28 PM
Old thread but I need help w/ this.
Where do I find the "import/staging" table? What's it called, exactly? Where do I look for it? I can't seem to find anything other than the "u_x" fields that we're actually mapping. Since we're not actually mapping u_manager I don't know what table to pull up to look at how many characters it has set.
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2017 12:33 PM
Of course right after I ask, that's when I find it.
In case anyone else can't figure this out, you have to look at all Tables (sys_db_object.list) and find your ldap_import table (look in the Name column, not the Label, which I guess may vary depending on your LDAP configuration).
Open that and you should see a "Max length" column where to change the characters as Chris Nick noted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2018 12:14 PM
Hi Steve,
Would you please let me know, what exactly have you changed to solve this problem? I'm facing the same issue with LDAP import now. I've change the source fields (manager) length to 255, still can't bring the manager from AD.
Thanks and regards,
Pavlo

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2021 03:42 AM
Hi All,
I was facing to the same problem.
To resolve this, please increase all fields that provide information about LDAP DN, Source to 200 or 255.
u_source
u_manager
dn
Check if the mapping to sys_user table can match (u_source may be to be increased)
Rgds,