Select Git revision
-
Tim Steiner authored
DB_Table_Row_DataType added Support for Linking Tables in DB_Table_Relation_HasMany
Tim Steiner authoredDB_Table_Row_DataType added Support for Linking Tables in DB_Table_Relation_HasMany
Ldap.php 597 B
<?php
require_once 'Nmc/Auth/Interface.php';
class Nmc_Auth_Ldap implements Nmc_Auth_Interface
{
protected $_conn;
public function __construct( NMC_Ldap $conn )
{
$this->_conn = $conn;
}
public function login( $user_name, $password )
{
try {
$this->_conn->bind("uid=$user_name,ou=people,dc=unl,dc=edu", $password);
$filter = 'uid=' . $user_name;
$this->_conn->search('ou=people,dc=unl,dc=edu', $filter );
} catch(Exception $e) {
throw new Nmc_Auth_Exception($e->getMessage(), $e->getCode());
}
return true;
}
}