우리는 최근에 osTicket Ticket System을 설치하여 우리 사무실에 구현할지 여부를 테스트했습니다. 기존의 열린 디렉토리에 대해 인증 할 수있는 능력이 있어야 도움이됩니다. 그것을 그러나os 티켓 오픈 디렉토리로 인증
/*compares user password*/
function check_passwd($password){
// Change made for LDAP Auth based on -> http://osticket.com/forums/showthread.php?t=3312
// Change this line to the FQDN of your domain controller
$ds=ldap_connect('mydc.mydomain.local') or die("Couldn't connect to AD!");
// Change this line to the name of your Active Directory domain
if ($ds) {
$domain="mydomain";
$ldapbind = ldap_bind($ds);
if ([email protected]_bind($ds, $domain."\\".$this->username, $password)) {
// Auth failed! lets try at osTicket database
return (strlen($this->passwd) && strcmp($this->passwd, MD5($password))==0)?(TRUE):(FALSE);
// return(FALSE);
}
else{
// Auth succeeded!
return(TRUE);
}
// End Changes
}
}
:
이/*compares user password*/
function check_passwd($password){
return (strlen($this->passwd) && strcmp($this->passwd, MD5($password))==0)?(TRUE):(FALSE);
}
새로운 코드는 : 나는 Active Directory를 사용하여 다음과 같은 코드를 대체하여 class.staff.php 파일 편집에 대한 이야기 기사 (http://www.bauer-power.net/2010/04/how-to-make-osticket-160-authenticate.html를) 발견 여전히 연결할 수없는 것 같습니다. Active Directory가 아닌 OD를 사용해야하기 때문에 이것이라고 가정합니다. 어떤 도움이라도 대단히 감사하겠습니다.
는
감사를이에 대한 당신의 응답을. 나는이 모든 것에 익숙하지 않다. 테스트 바인딩을 어떻게 수행할까요? – Aaron