LDAP integration and DNs with * in them
LDAP integration and DNs with * in them
Hi,
I've configured LDAP integration with my domains DN, but all of our users are under OUs with three *** in the name - don't ask me why, I don't understand that decision.
When I attempt to import users, I see the list of OUs but can't view anything beneath the ones with the * characters.
If I change the base DN to an OU with some of my users in it and use the \2A escape character, I can import the users in that OU.
Any chance I'm missing something simple?
I have version 5.3.2 installed, and the LDAP component is version 1.0.6
I've configured LDAP integration with my domains DN, but all of our users are under OUs with three *** in the name - don't ask me why, I don't understand that decision.
When I attempt to import users, I see the list of OUs but can't view anything beneath the ones with the * characters.
If I change the base DN to an OU with some of my users in it and use the \2A escape character, I can import the users in that OU.
Any chance I'm missing something simple?
I have version 5.3.2 installed, and the LDAP component is version 1.0.6
Last edited by dwhitfield on Wed Nov 23, 2016 2:53 pm, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: LDAP integration and DNs with * in them
For clarity, you are using LDAP / Active Directory Integration? We are only here until 2PM US Central today, so you have about 2 hours to get me that so I can start digging. Otherwise, maybe a community member will have an answer over the weekend.
Re: LDAP integration and DNs with * in them
LDAP/AD - That's correct
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: LDAP integration and DNs with * in them
So, I think it's safe to say at this point you aren't missing something simple. Can you show us how you are escaping each of the three *? Also, can you give us the complete OU names? If can't/aren't comfortable with that information being public, can you PM it to me? If you PM it, I'll look at it on Monday. If you post to the thread, a community member might be able to help out.
EDIT: LDAP info received.
EDIT: LDAP info received.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: LDAP integration and DNs with * in them
Those look find to me. Could you PM me your profile? Admin > System Config > System Profile (click "Show Profile" in XI 5 onwards) Thanks!
Same deal with updating the post after you've sent.
UPDATE: Profile received and shared with techs.
Same deal with updating the post after you've sent.
UPDATE: Profile received and shared with techs.
Re: LDAP integration and DNs with * in them
PM sent with system profile
Re: LDAP integration and DNs with * in them
Please edit this file:
Around line 122, change this code:
To this:
Then try it again and let us know if that resolves the issue for you.
Thank you
Code: Select all
/usr/local/nagiosxi/html/includes/components/ldap_ad_integration/adLDAP/src/classes/adLDAPFolders.phpCode: Select all
$filter .= '(!(distinguishedname=' . $ou . ',' . $this->adldap->getBaseDn() . ')))';Code: Select all
$filter .= '(!(distinguishedname=' . str_replace("*", "\*", $ou) . ',' . $this->adldap->getBaseDn() . ')))';Thank you
Re: LDAP integration and DNs with * in them
That worked perfectly!
Thank you!
Thank you!
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: LDAP integration and DNs with * in them
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!