[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: doing everything from LDAP
On Fri, Nov 19, 1999 at 10:22:08AM +0000, Karl Pitrich wrote:
> Hi!
>
> I have set up a Freemail/Freeweb Provider System a while ago.
>
> The modules i wrote for the webserver (Roxen) user popen() to ass
> users to the shadow-passwd system, which is dull.
>
> how can i replace all passwd lookups and the (fqdn)aliases with LDAP?
>
> has somebody done this before?
> a config example would be nice, because the doc is weak.
I have been doing something like it for quite a while.
We (Sonera) have our own in-house libraries for replacing system
getpwnam() instance in libc with one using our backend databases.
In our message stores all users have *same* UID value, so mapping
from UID to user is without real meaning. (No shell accounts ->
things are a lot simpler...)
Having said that, you perhaps want to cook up such a wrapper function
which uses LDAP and can ask for mapping from username to related data.
In addition to that, you will propably want to have fqdnaliases from
ldap (or aliases), but that depends more on how many domains you have
in use -- e.g. one (or a few equal) domain, or kwazillion domains.
I am not (unfortunately) sufficient wizard at general LDAP to answer
anything more precise without knowing your setup details.
> thank you, Karl
> --
> Best regards, Karl Pitrich.
--
/Matti Aarnio <mea@nic.funet.fi>