[tpop3d-discuss] LDAP module for tpop3D (and virtual domains)

Prune Prune at lecentre.net
Sat, 02 Feb 2002 01:53:07 +0100


--------------040300060401060502040900
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

Almost done...
I have to be fresh tomorrow so I'm going to sleep.
I'm currently porting the auth_mysql to auth_ldap, this way :

having :

auth_ldap_host : hostname
auth_ldap_port : port (389)
-> this will go to auth_ldap_url = "ldap://localhost:389", fr example. 
(as soon I have time)
auth_ldap_base_dn :    ex : "dc=society, dc=com"
auth_ldap_login : login for admin auth
auth_ldap_pass : password of admin
auth_ldap_maildrop_attr : attribut containing where to put the mail (ex 
: maildrop)
auth_ldap_mail_attr : attribut on which we do the search  (ex : mail)
auth_ldap_uid_attr : the uid of the owner

first, we connect to LDAP and bind as admin
then, we search for the DN of the requested mail, and all attributes of 
the mail
We finaly bind as the user (with the provided password... this is how 
ldap do auth)
if the bind is successful, we return attributes

Do you have LDAP experiences yet ?
Do you think I'm on the right way ?

Have a good night, Cheers

Prune

Paul Makepeace wrote:

>On Fri, Feb 01, 2002 at 11:23:50AM +0000, Chris Lightfoot wrote:
>
>>On Fri, Feb 01, 2002 at 10:11:25AM +0100, Prune wrote:
>>
>>>The perl module is for beeing able to test for 200k users quickly.
>>>If the C version does not exist, i'll work on it... just tell me if you 
>>>have clues...
>>>
>>I would start by implementing the perl version and seeing
>>whether it's good enough. Unless LDAP lookups are very
>>slow indeed the performance of the server will still be
>>dominated by the time to process messages in the mail box,
>>and it will probably be much easier to do in perl....
>>
>
>Depends how quickly this is needed but I could have a stab at it some
>time in the next couple of months. I'm moving countries right now so
>time is short (so many relatives, so little time.. :-) but at the least
>I'm happy to review if not actually write something.
>
>Paul
>


--------------040300060401060502040900
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi,<br>
<br>
Almost done...<br>
I have to be fresh tomorrow so I'm going to sleep. <br>
I'm currently porting the auth_mysql to auth_ldap, this way :<br>
<br>
having :<br>
<br>
auth_ldap_host : hostname<br>
auth_ldap_port : port (389)<br>
-&gt; this will go to auth_ldap_url = <a class="moz-txt-link-rfc2396E" href="ldap://localhost:389">"ldap://localhost:389"</a>, fr example.
(as soon I have time)<br>
auth_ldap_base_dn :&nbsp;&nbsp;&nbsp; ex : "dc=society, dc=com"<br>
auth_ldap_login : login for admin auth<br>
auth_ldap_pass : password of admin<br>
auth_ldap_maildrop_attr : attribut containing where to put the mail (ex :
maildrop)<br>
auth_ldap_mail_attr : attribut on which we do the search &nbsp;(ex : mail)<br>
auth_ldap_uid_attr : the uid of the owner<br>
<br>
first, we connect to LDAP and bind as admin<br>
then, we search for the DN of the requested mail, and all attributes of the
mail<br>
We finaly bind as the user (with the provided password... this is how ldap
do auth)<br>
if the bind is successful, we return attributes<br>
<br>
Do you have LDAP experiences yet ?<br>
Do you think I'm on the right way ?<br>
<br>
Have a good night, Cheers<br>
<br>
Prune<br>
<br>
Paul Makepeace wrote:<br>
<blockquote type="cite" cite="mid:20020201221721.GD20379@tantrix.realprogrammers.com">
  <pre wrap="">On Fri, Feb 01, 2002 at 11:23:50AM +0000, Chris Lightfoot wrote:<br></pre>
  <blockquote type="cite">
    <pre wrap="">On Fri, Feb 01, 2002 at 10:11:25AM +0100, Prune wrote:<br></pre>
    <blockquote type="cite">
      <pre wrap="">The perl module is for beeing able to test for 200k users quickly.<br>If the C version does not exist, i'll work on it... just tell me if you <br>have clues...<br></pre>
      </blockquote>
      <pre wrap="">I would start by implementing the perl version and seeing<br>whether it's good enough. Unless LDAP lookups are very<br>slow indeed the performance of the server will still be<br>dominated by the time to process messages in the mail box,<br>and it will probably be much easier to do in perl....<br></pre>
      </blockquote>
      <pre wrap=""><!----><br>Depends how quickly this is needed but I could have a stab at it some<br>time in the next couple of months. I'm moving countries right now so<br>time is short (so many relatives, so little time.. :-) but at the least<br>I'm happy to review if not actually write something.<br><br>Paul<br><br></pre>
      </blockquote>
      <br>
      </body>
      </html>

--------------040300060401060502040900--