Zitat von "Sunagawa Koji / $B:=@n(B $B9';y(B" <[EMAIL PROTECTED]>:
> you can use clear passwd with my patch.
> Please Try this patch. It is for 5.3.9.
good job !
But it wont apply against 5.3.12.
- In my CVS-Tree I thought about dynamically using LDAP-entries, because
hardcoding a special row for a special entrie makes it worse to add more new
LDAP-entries, because you have a bunge of #ifdefs and you will have to
doublecheck the whole code where direct access to an LDAP-entry is made
As a result I think it is nice to just address an LDAP-Entrie via pointers.
QMAILDOMAIN = 1;
CLEAR_PW = 2;
qmailUID = 3;
which are dynamically setup.
So general access to it would be
lm[CLEAR_PW]->mod_values = strdup(password);
next would be
lm[QMAILDOMAIN]->mod_values = strdup(password);
no matter if I "ifdefed" CLEAR_PW or not.
This make code much more easy and readable.
Hope you understand my point and tell me what do you think.
I will release a patch for vpopmail-5.3.12 that uses your way, but I am
of the opinion to have a clear interface to what is used or not is better than
using static addresses.