Russ Wilton wrote:

>
>   Perldap seems to be trying to do this as well, but it is not doing it
> correctly.  Although I bind to the Consumer with a username and password
> that has privileges to do the modify, Perldap seems to lose them and
> binds to the Supplier anonymously.  The modify then fails, of course and
> I get back an error code 50, Insufficient Access.

Before referrals will work, you have to set up a callback that will return
the bind dn, password, and authentication method to use in referrals.

For plain text authentication, for example, you would do this right after
you create your $ldap object:
$ldap->setRebindProc( sub { return($bind_dn, $bind_pswd, 128) ; } );

Dave Kernen


Reply via email to