Re: ldapquery plugin questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jun 15, 2006, at 7:18 AM, MT wrote:

> Hello,
> I'm using SM 1.4.6, PHP 4.4.0, ldapquery plugin v. 2.1, NOT using an
> ldap database backen.  My question is this:
> The management here want a way to have the user DN field auto-
> populated based on email address that signed in.  So that leads me to
> two problems, number 1 the PHP scripting.  I have very little
> experience with PHP so I wouldn't even know where to start.  Secondly
> the user DN field is the users common name, not email address - so is
> there a way to take the users email address, check the ldap directory
> and pull the CN?
>
> Any help would be appreciated.
> Matt
>

Okay, so I have part of it figured out.  1) I edited ldapquery.php  
and added
  $ldq_rdn = "cn=".$ldq_rdn
so now I don't have to type the CN=
2) I discovered the joy of aliases, but the problem is I can't seem  
to find how to pass the required -a find argument to the ldapsearch  
command.  Any ideas on that part?

Matt


--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux