Page 1 of 1
Is Active Directory Authentication possible?
Posted: Sun Apr 05, 2009 11:23 am
by jamesd1343
i need to minimize user authentication as much as possible can i use ad to authenticate users and not require any 'signup' to create a ticket?
Posted: Sun Apr 05, 2009 5:25 pm
by Klemen
Hesk doesn't require a signup to post tickets, see demo:
http://www.phpjunkyard.com/hesk/
my goal
Posted: Tue Apr 07, 2009 7:11 pm
by jamesd1343
id like to pull user info into the ticket when its created. Any advice?
pull current logged on user as domain\user and add a field for them to enter the Asset Tag which i assume i can do with a custom field
Posted: Wed Apr 08, 2009 3:39 pm
by Klemen
This would probably be possible but it would completely depend on the login/authentication system you are using. Can't help you there I'm afraid.
Re: Is Active Directory Authentication possible?
Posted: Tue May 10, 2011 11:25 pm
by IvDogg
I'm assuming IIS is being used, you need to disable anonymous authentication and enable windows authentication.
I used the following in the index.php file to use their domain login information (at about line 128):
Code: Select all
<?php
$duser = $_SERVER['AUTH_USER'];
$duser2 = str_replace("NG\\", "", $duser);
$duser2 = str_replace(".", " ", $duser2);
$duser3 = strtoupper($duser2);
echo "
<td width='80%'><input type='text' name='name' size='40' maxlength='30' value='$duser3' /></td>
";
?>
</tr>
<tr>
<td style="text-align:right" width="150"><?php echo $hesklang['email']; ?>: <font class="important">*</font></td>
<?php
$duser = $_SERVER['AUTH_USER'];
$demail = str_replace("NG\\", "", $duser);
$demail2 = $demail. "@us.army.mil";
echo "
<td width='80%'><input type='text' name='email' size='40' maxlength='50' value='$demail2' /></td>
";
?>
You will need to modify this to fit the needs of your specific environment, as I used it to strip the domain information and replace periods with empty spaces.
Re: Is Active Directory Authentication possible?
Posted: Wed Jul 04, 2012 12:11 am
by steve
Has anybody had any success with this?
AD Integration would be sweet!