Skip to Content.
Sympa Menu

en - Re: Can't connect to LDAP server!

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Salaun <address@concealed>
  • To: Rajat <address@concealed>
  • Cc: address@concealed
  • Subject: Re: Can't connect to LDAP server!
  • Date: Mon, 18 Dec 2000 11:32:30 +0100

Rajat wrote:

> my posting to the the mailing lists are not working
> the error log says --->
>
> Dec 18 14:05:26 ns sympa[17817]: No From found in message, skipping.
> [...]
> am using qmail .. and in my /etc/sympa.conf my
> sendmail attribute has /var/qmail/bin/qmail-inject
> ---> qmail's command-line mail delivery program ... in
> order to use it u just say simply ..
> #echo 'to: address@concealed' | /var/qmail/bin/qmail-inject

Lots of people use Sympa with Qmail.
Qmail distribution includes a binary compatible with sendmail's API.
It should be /var/qmail/bin/sendmail
That's the one you should put in sympa.conf.

Did you check New Hampshire University's experience with Sympa, Qmail
and LDAP:
http://listes.cru.fr/sympa/fom-serve/cache/62.html

> i appended the following code below line no. 3241 in
> the wwsympa.fcgi for getting the aliases and recomiled
> and installed
> [...]
> and made a crontab entry to append these aliases in
> the /etc/aliases and then run the 'newaliases' command
> .. it works!!!!!!
> :)

Great.
We'll try to make things cleaner soon.

> 1.) what i want is on the home page instead of "Send
> me a password" i need a sign on page for making a user
> login entry in the user_table of sympa database ????

Let me explain to you how password management works exaclty:

In the past (Sympa 2.7.3), when a user asked a password remind, a
password was added
for him/her in the DB. It had the disadvantage of filling the database
with entries of
people who started subscription process but who did not finish it.
Currently, password remind is a 2-speed process :
1/ A user will receive a password when subscribing to a list (if the
welcome.tpl include [user->password] or when hitting the "remind
password".
The password is generated (passwd = MD5(email+server secret)) and
NOT
stored in the DB.

2/ If the user changes it (via "Preferences" in WWSympa), the new
password
is inserted in his/her entry of the database.

If you wish to customize the homepage, all you need to do is
copy ~sympa/bin/etc/wws_templates/home.tpl to ~sympa/etc/wws_templates
and custumize it. It will used as the default.

> 2.) it was not difficult to figure out the aliases
> code appendig .. but can u please help me out where in
> the src code should i append the ldap authentication
> code ... i can write that module .... but i do'nt
> understand the src code tree of sympa ....
> so that i have ready users who are already in my LDAP
> database to be part of the sympa user base .. and they
> can carry on with their subscriptions from their
> logins and can even create mailing lists....

WWSympa relies on a HTTP cookie for identification of uses.
Once the cookie is set, WWSympa will check its format at every session,
but
will trust provided email address.

The code that does the authentication is in wwsympa::do_login() :
## Gets user info
## Generated one if none in DB
unless ($user = &List::get_user_db($in{'email'})) {
$user = {'email' => $in{'email'},
'password' => &tools::tmp_passwd($in{'email'})
};
}

## here is what you could include
$user->{'password'} ||= &your_get_ldap_password($user->{'email'});


## Sets global var, used in wwsympa.fcgi
$param->{'user'} = $user;

You could also make &tools::tmp_passwd() query your LDAP directory.

--
Olivier Salaün
Comité Réseaux des Universités



Archive powered by MHonArc 2.6.19+.

Top of Page