|
I posted the wrong extract
$ldap->sasl_parms(-mech=>"GSSAPI",
-secprops=>"",
-flags=>LDAP_SASL_QUIET);
# What is in message $mesg ?
$mesg = $ldap->bind_s(-type=>LDAP_AUTH_SASL);
# What are the possible arguments and return values ?
$mesg = $ldap->search( -base => $bind_path,
-filter => "(samaccountname=$user)",
-timelimit => 2,
-attrs => ['mail',
'samaccountname',
'useraccountcontrol',
'userprincipalname']
);
Markus |