Have just used this code to replace the yellow pages authentication
code in my home grown php solutions.
Regards
Tim
******
authenticate function auth_user($user,$pass) {
$ldapserver = 'ldap://xxx.xxx.xxx.xxx/';
$ds=ldap_connect($ldapserver);
if ($ds) {
ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
$dn="uid=$user,cn=users,dc=as,dc=edu,dc=au";
$r=ldap_bind($ds,$dn,$pass);
if ($r) { echo "logged in";
} else {
echo "sorry";
}
}
}
--
_______________________________________________________________________
Tim Scott - email@hidden AIM: timothydscott01
Computing Teacher, The Armidale School, Armidale, 2351
AUSTRALIA +61 427 277 702
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden