Re: [courier-users] Re: IMAP and POP authentication

2004-05-20 Thread Andre Correa
Tks for the info Sam, but I couldn't find any reference in the source 
neither on Google about: MYSQL_AUXOPTIONS. Are you sure this is the 
right options?

I've searched sources and found at authlib/README.authmysql.myownquery a 
TODO for a new query called MYSQL_PRESELECT_CLAUSE that looks 
interresting for my needs, but it is not implemented yet.

Anybody see other options or ways to go!?
tks for any information
Andre

Sam Varshavchik wrote:
Andre Correa writes:
This is because I have to permit some users to have access to IMAP and 
POP and others just to POP. I've created a new field in the database 
but I don't know how to make the two daemons use diferent SQL queries.

See the MYSQL_AUXOPTIONS setting in the authmysqlrc configuration file.
See INSTALL for additional information on how to use this option.

---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Re: IMAP and POP authentication

2004-05-20 Thread Andre Correa
Sam, I would like to apologise. I've checked an old source and that is 
why I couldn't find MYSQL_AUXOPTIONS. I found it on 3.0.4. I'll try 
disableimap and report back to the list when I have it working.

Sorry again for the mistake.
Andre

Andre Correa wrote:
Tks for the info Sam, but I couldn't find any reference in the source 
neither on Google about: MYSQL_AUXOPTIONS. Are you sure this is the 
right options?

I've searched sources and found at authlib/README.authmysql.myownquery a 
TODO for a new query called MYSQL_PRESELECT_CLAUSE that looks 
interresting for my needs, but it is not implemented yet.

Anybody see other options or ways to go!?
tks for any information
Andre

Sam Varshavchik wrote:
Andre Correa writes:
This is because I have to permit some users to have access to IMAP 
and POP and others just to POP. I've created a new field in the 
database but I don't know how to make the two daemons use diferent 
SQL queries.

See the MYSQL_AUXOPTIONS setting in the authmysqlrc configuration file.
See INSTALL for additional information on how to use this option.

---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149alloc_id=8166op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] IMAP and POP authentication

2004-05-19 Thread Andre Correa
Hi list, for a long time I've being using Courier IMAP and POP in 
several servers with great results. But now I have a new need that I'm 
not sure how to address.

I need to make IMAP and POP daemons authenticate on my MySQL DB using 
diferent SQL queries.

This is because I have to permit some users to have access to IMAP and 
POP and others just to POP. I've created a new field in the database but 
I don't know how to make the two daemons use diferent SQL queries.

I thought about running two authentication daemons and point IMAP to one 
and POP to the other. Is it possible? Or I better try something with ACLs?!

Any help is appreciated.
tks in advance.
Andre

---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] IMAP and POP authentication

2004-05-19 Thread Andre Correa
Hi list, for a long time I've being using Courier IMAP and POP in
several servers with great results. But now I have a new need that I'm
not sure how to address.
I need to make IMAP and POP daemons authenticate on my MySQL DB using
diferent SQL queries.
This is because I have to permit some users to have access to IMAP and
POP and others just to POP. I've created a new field in the database but
I don't know how to make the two daemons use diferent SQL queries.
I thought about running two authentication daemons and point IMAP to one
and POP to the other. Is it possible? Or I better try something with ACLs?!
Any help is appreciated.
tks in advance.
Andre

---
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562alloc_id=6184op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] MySQL and Maildir

2002-04-12 Thread Andre Correa


Hi list, I set up Courier-IMAP to authenticate using MySQL but
couldn't find documentation to help me further. I get authenticated by
POP3 but with the message:

-ERR Maildir: Permission denied

Users in MySQL db are not system users. I want to put all e-mail in a
single directory or directory tree for users. I dont know what to put
in uid and gid fields on the database, and setting maildir to an existant
directory doesn't work.

I couldn't find documentation to help me... Can you give me some
light!?

tks

Andre Correa
[EMAIL PROTECTED]


___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Writting my wrapper... what else?!

2002-04-09 Thread Andre Correa


Hi list, after talking to many people and trying a lot of options a
decided to make a wrapper for authldap...

My problem is trying to authenticate with AD that has a different
schema then OpenLDAP, so I decided to make authldap point to a wrapper
that will query AD and get info back to authldap the way it wants...

How does it sound!? I need some help because I dont have an authldap
with OpenLDAP environment working so I need to want exaclty what
answer authldap expects from OpenLDAP.

Is there somebody who can send me packets of this transactions or any
info that can help me!?

I really need to make it work and need some help...

tks for all.

Andre Correa
[EMAIL PROTECTED]


___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Open-LDAP and Active Directory and Courier-IMAP (please help)

2002-04-05 Thread Andre Correa


Hi, this is my first post here, but it is an important question
that I have and I will appreciate any help you guys can give me.

I'm working as a consultant for a company that wants to have an
email server (POP3, IMAP and WebMail) authenticating in their
Windows 2000 Active Directory forest. I installed a Slackware 8,
kernel 2.4.18, with Courier-IMAP/POP3 1.4.3 and OpenLDAP 2.0.23, but
I cannot make it work.

I configured Courier-IMAP/POP3 to make LDAP queries like this:
(suppose my domain is abcd.br and my user is username@dmz in a server
dmz.abcd.br with IP address 10.96.0.9)

LDAP_SERVER = 10.96.0.3
LDAP_PORT   = 389
LDAP_BASEDN = ou=users, dc=abcd, dc=br

LDAP_BINDDN and LDAP_BINDPW are still misterious to me. Do I need
then? This user must be an AD admins!?

LDAP_MAIL   = cn (Is this the field on AD that should the lookup?)

LDAP_DOMAIN = abcd.br
LDAP_CLEARPW = clearPassword  (Is it the right choice)

Then I tried to authenticate and sniffied the packets and got some
strange results...

Packet ID (from_IP.port-to_IP.port): 10.96.0.9.1055-10.96.0.3.389
 E . . . . . @ . @ . . . . ` . . . ` . . . . . . r . O M . . . . . . . . . .
 . . . . . . . n . @ . . . . 0 d . . . c _ . . o u = u s e r s ,   d c = a b
 c d ,   d c = b r . . . . . . . . . . . . . . . . . . . c n . . u s e r n a
 m e @ d m z 0   . . h o m e D i r . . c n . . c l e a r P a s s w o r d . .
 c n

Packet ID (from_IP.port-to_IP.port): 10.96.0.3.389-10.96.0.9.1055
 E . . . . . @ . . . . . . ` . . . ` . . . . . . . . . . r . O . . . C . l E
 . . . . . . . . . . . n . @ 0 . . . . . . . . e . . . . . . . . . . . L 0 0
 0 0 2 0 2 B :   R e f E r r :   D S I D - 0 3 1 0 0 5 E E ,   d a t a   0 ,
   1   a c c e s s   p o i n t s . . r e f   1 :   ' a b c d . b r ' . . . .
 . . . - . + l d a p : / / a b c d . b r / o u = u s e r s , % 2 0 d c = a b
 c d , % 2 0 d c = b r

In my /var/log/syslog I get:

Apr  4 17:38:45 betamail authdaemond.ldap: ldap_simple_bind_s failed: Invalid 
credentials
Apr  4 17:38:50 betamail pop3d: LOGIN FAILED, ip=[:::127.0.0.1]
Apr  5 13:08:49 betamail imapd: DISCONNECTED, ip=[:::127.0.0.1], headers=0, body=0 

So here goes my doubts:

- I think the LDAP query is just fine, am I right?

- For me the problem seens to be that W2K is not allowing me to query
AD and that this: Invalid credentials message is just about it. I've
tried to use LDAP_BINDDN and LDAP_BINDPW with an administrator
username and password with no different results.

- I couldn't find my password sent in this packets... and couldn't figure
out why...

Is there somebody who can give me any light on this?! I read the
documentation but it is not oriented to people trying to work with W2K
LDAP database, just a OpenLDAP database... and Microsoft search
for the error message helped nothing...

Sorry for the long email... I will try to get all the help, solve the
problem and then write a paper about it... maybe a mini-HOWTO for
others that may be in the same situation...

tks for your attention..

Andre Correa
[EMAIL PROTECTED]


___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users