Using Active Directory to login to XI -- Special Chars

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Using Active Directory to login to XI -- Special Chars

Post by cwscribner »

Hi all.

I recently did a training session with a client whom had done some official training offered from Nagios. He brought up an interesting point that I feel requires addressing. His instructor noted that the plugin to use active directory to login doesn't allow special characters. This is a problem for them as special chars are part of their password scheme (and is a pretty common practice anyway). Is there a simple way to allow the ad_login plugin to use special chars or is this a feature that's in the works?
Last edited by cwscribner on Mon Oct 03, 2011 11:20 am, edited 1 time in total.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Using Active Directory to login to XI -- Special Chars

Post by agriffin »

Active Directory integration was developed for a single client of ours who required it and had relatively simple requirements. It is not currently a very robust component. We have plans to address this in the future, however I don't know when we'll get to it as we have a lot of things on our plate at the moment.
User avatar
rseiwert
Posts: 196
Joined: Wed Jun 22, 2011 10:33 pm
Location: Somewhere between Here and Now

Re: Using Active Directory to login to XI -- Special Chars

Post by rseiwert »

Yet another Samba limitation....
Grumpy Olde IT Guy
hockad
Posts: 24
Joined: Wed Dec 21, 2011 1:52 pm

Re: Using Active Directory to login to XI -- Special Chars

Post by hockad »

We also are having this issue. Is there anything that we could do to help move this along?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Using Active Directory to login to XI -- Special Chars

Post by yancy »

hockad,

Can you be more specific about the issue your facing? The ad component which allows users to authenticate against active directory has no limit for special characters in the password currently.


Regards,

-Yancy
hockad
Posts: 24
Joined: Wed Dec 21, 2011 1:52 pm

Re: Using Active Directory to login to XI -- Special Chars

Post by hockad »

Yancy,
We had a user with the '@' symbol in there password. They were not able to login to the system. We added the following line of code to active_directory.inc.php and was able to get around the problem.

utf8_decode($password);

Here is the diff.

337,338d336
< //AJH added to deal with special characters in password
< utf8_decode($password);
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Using Active Directory to login to XI -- Special Chars

Post by yancy »

hockad,

The stage environment i'm has usernames with an apetail "@" symbol and it doesn't cause issues with AD authentication. This is a big isssue if special characters do cause problems because of most password complexity requirements.

I'm not sure why the post variables would need to be decoded like in your example, but i'll do some testing.

Thanks for posting your solution to this.

-Yancy
hockad
Posts: 24
Joined: Wed Dec 21, 2011 1:52 pm

Re: Using Active Directory to login to XI -- Special Chars

Post by hockad »

Yancy,
I believe the users had the '@' at the end of the password.

Adam
Locked