ldpamodify on ADS via PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
StefanImmel
Forum Newbie
Posts: 2
Joined: Mon Aug 19, 2002 4:50 am

ldpamodify on ADS via PHP

Post by StefanImmel »

I am looking for a way to modify an ADS attribut via PHP.

I tried:

$entry["extensionattribute1"][0] = "Test";
ldap_modify($lc,$dn,$entry);

with a valid $lc but I only get an:

DSA is unwilling to perform back.

can somebody help me there ???
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

your password grants you modifications on the backend and it supports the given operation?
StefanImmel
Forum Newbie
Posts: 2
Joined: Mon Aug 19, 2002 4:50 am

Post by StefanImmel »

volka wrote:your password grants you modifications on the backend and it supports the given operation?
The user/password is right and I even tried it with an Admin equivalent.

I think the problem is the backend (ADS) but how can I check that ???
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

hmmmm....sorry. I have no practice with LDAP.
All I know is from my mcp-tests (to be more exact from a book "just the answers" ;) ).
But as far as I know there are attributes to each object like aclentry and aclsource that hold the information of who has what permissions.
Probably you can do a ldap search on those objects/attributes.
they maybe even reflect the backend capabilities - maybe not :-S
Post Reply