Hello all. I'm have this problem: I'm want auth users by "uid" filed but this filed uniq only in one LDAP container. So im what to tell dovecot were to look some "uid" by "mail" filed of this user. Can im do this: pass_filter = (&(objectClass=mailUser)(mail=*@%d)(uid=%n)) Will this construction work? -- Best regards, Proskurin Kirill
Quoting dovecot-request at dovecot.org:> Message: 9 > Date: Mon, 08 Sep 2008 12:33:29 +0400 > From: Proskurin Kirill <k.proskurin at fxclub.org> > Subject: [Dovecot] LDAP filters > To: Dovecot Mailing List <dovecot at dovecot.org> > Message-ID: <48C4E359.7090602 at fxclub.org> > Content-Type: text/plain; charset=UTF-8; format=flowed > > Hello all. > > I'm have this problem: > > I'm want auth users by "uid" filed but this filed uniq only in one LDAP > container. So im what to tell dovecot were to look some "uid" by "mail" > filed of this user. > > Can im do this: > > pass_filter = (&(objectClass=mailUser)(mail=*@%d)(uid=%n)) > > Will this construction work?Why not (&(objectClass=mailUser)(mail=%u)(uid=%n)) ? PS. You really should consider solving this is a more elegant way ;) -- Tomasz Krzysztof Jarzynka / mob. +48 601 706 601 / HANDLE: TJ950-RIPE Network Information Systems Administrator / tomee(at)genesilico(d-o-t)pl Laboratory of Bioinformatics and Protein Engineering | www.genesilico.pl International Institute of Molecular and Cell Biology | www.iimcb.gov.pl
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 8 Sep 2008, Proskurin Kirill wrote:> pass_filter = (&(objectClass=mailUser)(mail=*@%d)(uid=%n)) > > Will this construction work?Well, try it :-) If your users authentificate with uid at maildomain, it should work, but then I wonder why they are not login using the mail address. Bye, - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIxSynVJMDrex4hCIRAlbjAJ4nkWYiVMZpBxCFsS/zv4q36rrnCgCgyb3S VB5VsCHdZzlfC6W14ggCoVM=shn8 -----END PGP SIGNATURE-----
Tomasz K Jarzynka wrote:> Why not (&(objectClass=mailUser)(mail=%u)(uid=%n)) ? > PS. You really should consider solving this is a more elegant way ;)Yes, yes, yes. :-) Im trying to make some very stupid thing just because im runnig out of ideas about all in one ldap auth center. -- Best regards, Proskurin Kirill