The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Other
> Development Articles
|
Using PHP With LDAP (part 2)
Discuss Using PHP With LDAP (part 2) in the Development Articles forum on Dev Shed. Using PHP With LDAP (part 2) Development Articles forum discussing articles and tutorials located at http://www.devshed.com. See what our authors have created for your viewing pleasure.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

April 13th, 2003, 04:20 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Great Article
I liked this article a lot. The only problem I had with it was the modify.php only lets you modify the names. If you try to edit the email address, it fails because you cannot change the identifier it is using to identify the proper entry. If this were fixed/changed, it'd be great. That's what I'm trying to figure out how to do now.
Brian
|

April 13th, 2003, 05:46 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Re: Great Article (I figured it out)
Okay, I worked around the aforementioned inability to edit email addresses.
In edit.php, I put an extra variable to pass to modify.php::
<input type="hidden" name="mailorig" size="20" value="<?php echo $info[0]["mail"][0]; ?>">
In modify.php, I changed this::
// prepare DN
$dn = "mail=" . $_POST['mail'] . ", dc=my-domain, dc=net";
to this ...::
// prepare DN
$dn = "mail=" . $_POST['mailorig'] . ", dc=my-domain, dc=net";
Harish, I hope you change this in your article. Otherwise, I found it MOST useful. Thank you!
Brian
|

May 15th, 2003, 09:34 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Using PHP With LDAP (part 2)
Using PHP With LDAP \(part 2\)
April 07, 2003 - In this second, and concluding, article, dig deeper into PHP's LDAP API by writing complex search queries and building a Web-based administration module to retrieve and modify entries from the LDAP directory tree. Read the article .
Please discuss this article in this thread. You can read the article here .
|

May 26th, 2003, 10:44 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Posted by: Anonymous User
Subject: Great Article
Date: 04-13-2003 15:20:46 MST
I liked this article a lot. The only problem I had with it was the modify.php only lets you modify the names. If you try to edit the email address, it fails because you cannot change the identifier it is using to identify the proper entry. If this were fixed/changed, it'd be great. That's what I'm trying to figure out how to do now.
Brian
|

May 26th, 2003, 10:45 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Name: Anonymous User
Subject: Re: Great Article (I figured it out)
Date: 04-13-2003 16:46:45 MST
Okay, I worked around the aforementioned inability to edit email addresses.
In edit.php, I put an extra variable to pass to modify.php:
<input type="hidden" name="mailorig" size="20" value="<?php echo $info[0]["mail"][0]; ?>">
In modify.php, I changed this:
// prepare DN
$dn = "mail=" . $_POST['mail'] . ", dc=my-domain, dc=net";
to this ...:
// prepare DN
$dn = "mail=" . $_POST['mailorig'] . ", dc=my-domain, dc=net";
Harish, I hope you change this in your article. Otherwise, I found it MOST useful. Thank you!
Brian
|

May 28th, 2003, 09:39 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
If you would like to see an article covering a particular topic, please post your request here.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|