If this suggestion isn't what you're after then it's probably because I
don't fully understand your problem, but here goes...

if you are simply replacing an old password with a new one in a directory
entry you don't need to delete and then add; instead you would use...

ldap_mod_replace to replace the value of userPasswd for the specified entry.
(see http://www.php.net/manual/en/ref.ldap.php)

If you need to do this for multiple entries you would simply repeat the
process in a loop specifying a different dn and newPasswd each time.

I've got a feeling this isn't going to answer your question.  Post more
information about your problem if this is the case.

Cheers the noo,
Derek

----- Original Message -----
From: "Matt McFarlane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 18, 2001 2:09 PM
Subject: [PHP-DB] LDAP multiple actions in modify?


> Using jsp I can create an array of multiple actions and pass them to an
ldap
> server as one request.  Is there a way to do this using php.
>
> Specifically I need to perform a delete action on "userPassword" where
> value="oldPassword" and an add action passing "userPassword" and
> value="newPassword".  The actions must be contained in a single request
and
> the delete function must specify the old password.
>
> Thanks.
>
> Matt McFarlane
> Wheaton College
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



**********************************************************************************
This e-mail (and any attachment) is intended only for the attention
of the addressee(s). Its unauthorised use, disclosure, storage
or copying is not permitted. If you are not the intended recipient,
please destroy all copies and inform the sender by return e-mail. 
This e-mail (whether you are the sender or the recipient) may be 
monitored, recorded and retained by Business Information 
Publications Limited (BiP). E-mail monitoring/ blocking software 
may be used, and e-mail content may be read at any time.You 
have a responsibility to ensure laws are not broken when composing 
or forwarding e-mails and their contents.
**********************************************************************************


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to