atom feed20 messages in net.sourceforge.lists.courier-usersRE: [courier-users] Re: LDAP backend ...
FromSent OnAttachments
Bryan RagonMar 28, 2003 1:34 pm 
Sam VarshavchikMar 28, 2003 2:33 pm 
Bryan RagonMar 31, 2003 6:05 am 
Bi...@triligon.orgMar 31, 2003 9:52 am 
James A BakerMar 31, 2003 10:42 am 
Sam VarshavchikMar 31, 2003 11:02 am 
Rodrigo SeveroApr 1, 2003 7:01 am 
Bi...@triligon.orgApr 1, 2003 7:54 am 
Bryan RagonApr 1, 2003 8:58 am 
Rodrigo SeveroApr 1, 2003 9:57 am 
Rodrigo SeveroApr 1, 2003 1:58 pm 
Gerardo GregoryApr 1, 2003 2:50 pm 
Gerardo GregoryApr 1, 2003 3:48 pm 
Bruce BroeckerApr 1, 2003 6:46 pm 
Bi...@triligon.orgApr 1, 2003 8:47 pm 
Jerry AmundsonApr 2, 2003 8:39 am 
Rodrigo SeveroApr 3, 2003 4:39 am 
Rodrigo SeveroApr 3, 2003 5:12 am 
Rodrigo SeveroApr 3, 2003 7:45 am 
Rodrigo SeveroApr 3, 2003 10:14 am 
Subject:RE: [courier-users] Re: LDAP backend / password expiration
From:Bi...@triligon.org (Bi@triligon.org)
Date:Mar 31, 2003 9:52:18 am
List:net.sourceforge.lists.courier-users

KISS method. May not do what you want, BUT....

How about an 'include:" in your aliases file that refers to a list.

The (dynamic) list is of expired/overdue accounts. Generated by ....whatever.. (billing software, even)

It points their traffic to a 'reminder' message mailing list. Or pipes to *whatever*... ... instead of their (temporarily/permanently inaccessible) maildir....

That way, your billing system - or *whatever* needn't know much about the mta, nor the reverse, nor is there a lot of coding....

HTH

Bill Hacker

In <MBEL@zapeng.com>, on 03/31/03 at 08:50 AM, "Bryan Ragon" <bra@zapeng.com> said:

hehe..... straight and to the point. From looking over the code, it looks like I could add the functionality by editing authldaplib.c. Probably in auth_ldap_do3. I could use copy_value to retrieve the expiration date from ldap. I figure the code could go either just before or after:

if (rc == 0 && callback) rc= (*callback)(&auth, arg);

What function does the *callback run? and does it have any bearing on if I put my code before or after. If after I basically planned on something like:

// pseudo-pseudo code obviously :) if (rc == 0) { copy_value(my_ldap_fp, expire_date, "expire", &p, user) ;

// would need to find c functions /librarys for modifying unix timestamps. if (//compare dates) rc = -1 ; else rc = 0 ; }

This would return a bad password (permanent error) correct? Is there anyway that I could return a custom negative return code, and have the calling function report back a custom error message to the user? i.e. "Password has expired" (I know, very original, thoughtful and catchy error message :-) (I would need to add the "custom error message" functionality to both imapd and pop3d.

Thanks for the help, Bryan

-----Original Message----- Bryan Ragon writes:

Does courier-imapd and pop3d support a password expiration field in an ldap backend? I have the ldap setup to allow imap & pop access

already, but I

Nope.