Unable to import LDAP users

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import LDAP users

Post by ssax »

Not that I'm aware of but that might be the issue, I'll set it up and see if we can get it working.
User avatar
mike4vr
Posts: 89
Joined: Wed Feb 04, 2015 2:23 pm

Re: Unable to import LDAP users

Post by mike4vr »

ssax wrote:Not that I'm aware of but that might be the issue, I'll set it up and see if we can get it working.
Fantastic! Looking forward to seeing your results.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import LDAP users

Post by ssax »

The problem is that IPA uses uid= instead of CN= so it will not work at this point, I tried to get it working but I was unable to because some of the files are encrypted, the developers will need to fix it.

I've created a bug report for this:

Code: Select all

NEW TASK ID 6063 created - Nagios Log Server Bug Report: LDAP/AD import doesn't work with IPA server
User avatar
mike4vr
Posts: 89
Joined: Wed Feb 04, 2015 2:23 pm

Re: Unable to import LDAP users

Post by mike4vr »

ssax wrote:The problem is that IPA uses uid= instead of CN= so it will not work at this point, I tried to get it working but I was unable to because some of the files are encrypted, the developers will need to fix it.

I've created a bug report for this:

Code: Select all

NEW TASK ID 6063 created - Nagios Log Server Bug Report: LDAP/AD import doesn't work with IPA server
That's good to know. Thank you for your efforts. Is it reasonable to expect this "fix" in the next release?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import LDAP users

Post by ssax »

I'm unsure of that, that is up to the developers and their priorities.
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Unable to import LDAP users

Post by jomann »

Importing users may not work with free IPA because of the uid= part of the username. However if you edit a user (or create one) and select the LDAP server you want them to authenticate with using the drop down, it may work by setting the uid=username,cn=something and it will add the rest of the dn=x,dn=com at the end when you set up your LDAP server. The import was created with OpenLDAP.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
mike4vr
Posts: 89
Joined: Wed Feb 04, 2015 2:23 pm

Re: Unable to import LDAP users

Post by mike4vr »

jomann wrote:Importing users may not work with free IPA because of the uid= part of the username. However if you edit a user (or create one) and select the LDAP server you want them to authenticate with using the drop down, it may work by setting the uid=username,cn=something and it will add the rest of the dn=x,dn=com at the end when you set up your LDAP server. The import was created with OpenLDAP.
The only way I am able to authenticate is by supplying the username as: uid=username,cn=users,cn=accounts,dc=domain,dc=tld. As you can see, I can successfully authenticate (as shown in my original post) but the import users box is not populated with the users in the container.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import LDAP users

Post by ssax »

I think what jomann is saying is that you could manually add a user (not import) and then select the Auth Type of LDAP and set the User's Full DN to enable LDAP auth to work. I will test it on mine and let you know.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Unable to import LDAP users

Post by ssax »

It did work for me with these settings:
ls_ldap_settings.png
Then I add a user manually with these settings:
ls_ldap_user.png
Then I was able to login as that user through ldap auth.
You do not have the required permissions to view the files attached to this post.
User avatar
mike4vr
Posts: 89
Joined: Wed Feb 04, 2015 2:23 pm

Re: Unable to import LDAP users

Post by mike4vr »

Bingo! I was not aware that I could do that. I was under the impression the only way to add LDAP users was through the import function. I am able to add users manually now. While the importing feature would be fantastic, this will suffice for the time being. Thank you!
Locked