Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 13th, 2003, 04:20 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #2  
Old April 13th, 2003, 05:46 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #3  
Old May 15th, 2003, 09:34 AM
md_doc
Guest
Dev Shed Newbie (0 - 499 posts)
 
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 .

Reply With Quote
  #4  
Old May 26th, 2003, 10:44 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #5  
Old May 26th, 2003, 10:45 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #6  
Old May 28th, 2003, 09:39 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Using PHP With LDAP (part 2)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap