[spip-dev] SPIP 1.5pr2 CVS et authentification ldap

Bonjour,

Très intéressé par l'authentification de spip sur un annuaire Ldap, j'ai donc
installé la version 1.5pr2 du CVS.

J'observe un problème :
Si l'utilisateur saisie un mauvais mot de passe, l'authentification échoue :slight_smile:
par contre si il laisse le champ mot de passe vide, l'authentification
réussie :-/
Avez vous observé cela de votre coté ?

Cordialement
Jean-Luc

From cclem@club-internet.fr Tue Dec 10 18:13:40 2002

Return-Path: <cclem@club-internet.fr>
Received: from relay-2v.club-internet.fr (relay-2v.club-internet.fr
  [194.158.96.113])
  by miel.brainstorm.fr (Postfix) with ESMTP id 0DAB61D2B8
  for <spip-dev@rezo.net>; Tue, 10 Dec 2002 18:13:40 +0100 (CET)
Received: from diablo (lns14v-7-71.w.club-internet.fr [212.195.190.71])
  by relay-2v.club-internet.fr (Postfix) with SMTP id 82C021B4E
  for <spip-dev@rezo.net>; Tue, 10 Dec 2002 18:12:46 +0100 (CET)
X-mailer: Foxmail 4.2 [-fr-]
Mime-Version: 1.0
Content-Type: multipart/mixed;
      boundary="=====000_Dragon763533570206_====="
Message-Id: <20021210171246.82C021B4E@relay-2v.club-internet.fr>
X-BeenThere: spip-dev@rezo.net
X-Mailman-Version: 2.1b5+
Precedence: list
List-Id: SPIP : developpement <spip-dev.rezo.net>
List-Help: <mailto:spip-dev-request@rezo.net?subject=help>
List-Post: <mailto:spip-dev@rezo.net>
List-Subscribe: <http://listes.rezo.net/mailman/listinfo/spip-dev>,
  <mailto:spip-dev-request@rezo.net?subject=subscribe>
List-Archive: <http://listes.rezo.net/archives/spip-dev>
List-Unsubscribe: <http://listes.rezo.net/mailman/listinfo/spip-dev>,
  <mailto:spip-dev-request@rezo.net?subject=unsubscribe>
X-List-Received-Date: Tue, 10 Dec 2002 17:13:40 -0000
Status: O
Content-Length: 29929
Lines: 402

This is a multi-part message in MIME format.

--=====000_Dragon763533570206_=====
Content-Type: text/plain;
      charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

j'ai corrig=E9 les erreurs...en pj

--=====000_Dragon763533570206_=====
Content-Type: application/octet-stream;
      name="configuration.php3"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
      filename="configuration.php3"

PD9waHAKCmluY2x1ZGUgKCJpbmMucGhwMyIpOwoKaW5jbHVkZV9lY3JpcmUgKCJpbmNfY29uZmln
LnBocDMiKTsKCmZ1bmN0aW9uIG15U2VsKCR2YXJhdXQsJHZhcmlhYmxlKXsKCQkkcmV0b3VyPSAi
IFZBTFVFPVwiJHZhcmF1dFwiIjsKCglpZiAoJHZhcmlhYmxlPT0kdmFyYXV0KXsKCQkkcmV0b3Vy
Lj0gIiBTRUxFQ1RFRCI7Cgl9CgoJcmV0dXJuICRyZXRvdXI7Cn0KCgpkZWJ1dF9wYWdlKCJDb25m
aWd1cmF0aW9uIGR1IHNpdGUiLCAiYWRtaW5pc3RyYXRpb24iLCAiY29uZmlndXJhdGlvbiIpOwoK
ZWNobyAiPGJyPjxicj48YnI+IjsKZ3Jvc190aXRyZSgiQ29uZmlndXJhdGlvbiBkdSBzaXRlIik7
CmJhcnJlX29uZ2xldHMoImNvbmZpZ3VyYXRpb24iLCAiY29udGVudSIpOwoKCmRlYnV0X2dhdWNo
ZSgpOwoKZGVidXRfZHJvaXRlKCk7CgppZiAoJGNvbm5lY3Rfc3RhdHV0ICE9ICcwbWluaXJlem8n
IE9SICEkY29ubmVjdF90b3V0ZXNfcnVicmlxdWVzKSB7CgllY2hvICJWb3VzIG4nYXZleiBwYXMg
YWNjJmVncmF2ZTtzICZhZ3JhdmU7IGNldHRlIHBhZ2UuIjsKCWZpbl9wYWdlKCk7CglleGl0Owp9
CgovLwovLyBNb2RpZmljYXRpb25zCi8vCgppbml0X2NvbmZpZygpOwppZiAoJGNoYW5nZXJfY29u
ZmlnID09ICdvdWknKSB7CglhcHBsaXF1ZXJfbW9kaWZzX2NvbmZpZygpOwp9CmVsc2UgewoJJGZv
cnVtc19wdWJsaWNzID0gbGlyZV9tZXRhKCJmb3J1b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GNvbXBvcnRlbWVu
dCBkZSBjaGFxdWUgbGllbiBoeXBlcnRleHRlIGRhbnMgY2hhcXVlIGFydGljbGUsIHNhdWYgJmFn
cmF2ZTsgcGVyZHJlIGxhIGNvaCZlYWN1dGU7cmVuY2UgZGUgdm90cmUgaW50ZXJmYWNlIGRlIG5h
dmlnYXRpb24uIFNpIHZvdXMgY29uc2VydmV6IGwnb3B0aW9uICZsYXF1bztJbnRlcmRpcmUgbGEg
cyZlYWN1dGU7bGVjdGlvbiBtYW51ZWxsZSZyYXF1bzssIGNlIHJhY2NvdXJjaSBmb25jdGlvbm5l
cmEgbm9ybWFsZW1lbnQsIG1haXMgc2FucyBwcm92b3F1ZXIgbCdvdXZlcnR1cmUgZCd1bmUgZmVu
JmVjaXJjO3RyZS48cD4iOwoKCWFmZmljaGVyX2Nob2l4KCdsaWVuX291dnJhbnRfbWFudWVsJywg
JGxpZW5fb3V2cmFudF9tYW51ZWwsCglhcnJheSgnb3VpJyA9PiAnQXV0b3Jpc2VyIGxlcyBsaWVu
cyBvdXZyYW50cyBtYW51ZWxzJywKCQknbm9uJyA9PiAnSW50ZXJkaXJlIGxlcyBsaWVucyBvdXZy
YW50cyBtYW51ZWxzJyksICI8YnI+Iik7CmVjaG8gIjwvVEQ+PC9UUj4iOwoKZWNobyAiPFRSPjxU
RCBBTElHTj0ncmlnaHQnPiI7CmVjaG8gIjxJTlBVVCBUWVBFPSdzdWJtaXQnIE5BTUU9J1ZhbGlk
ZXInIFZBTFVFPSdWYWxpZGVyJyBDTEFTUz0nZm9uZG8nPiI7CmVjaG8gIjwvVEQ+PC9UUj4iOwpl
Y2hvICI8L1RBQkxFPlxuIjsKCmZpbl9jYWRyZV9yZWxpZWYoKTsKCmVjaG8gIjxwPiI7CgoKCgoK
ZWNobyAiPC9mb3JtPiI7CgoKZmluX3BhZ2UoKTsKCj8+Cg==

--=====000_Dragon763533570206_=====--

Salut,

Très intéressé par l'authentification de spip sur un annuaire Ldap, j'ai donc
installé la version 1.5pr2 du CVS.

J'observe un problème :
Si l'utilisateur saisie un mauvais mot de passe, l'authentification échoue :slight_smile:
par contre si il laisse le champ mot de passe vide, l'authentification
réussie :-/
Avez vous observé cela de votre coté ?

Non mais cela peut arriver si ton serveur LDAP est trop laxiste.
J'ai essayé une correction dans la dernière version de SPIP, tu
peux tester ? Prends l'archive à :
http://rezo.net/spip-cvs/cvs_root.tar.gz?tarball=1&cvsroot=SPIP

a+

Antoine.

Bonjour,

Non mais cela peut arriver si ton serveur LDAP est trop laxiste.

Hmmm :wink: Comment le rendre moins laxiste ?

J'ai essayé une correction dans la dernière version de SPIP,

Merci :slight_smile:

Vu :

// Securite, au cas ou le serveur LDAP est tres laxiste
if (!$login || !$pass) return false;

tu peux tester ?

Même chose ! J'avais testé une chose similaire sans succes.

Pour tracer le pb que je rencontre, j'ai fais ceci :
Démarrer ldap en mode debug avec une redirection des sorties sur une console
et ajouter ceci dans inc_auth_ldfap.php3
$fp=fopen("/var/www/spip/ldap.log","a");
if($fp) {
      fputs($fp,"login : ".$login." pass : ".$pass."\n");
      fclose($fp);
}

Puis j'observe le fichier spip/ldap.log
et la sortie de slapd pendant les authentifications.

Et bien lorsque l'utilistateur propose un mdp (bon ou mauvais), j'ai des
requetes sur l'annuaire, par contre si le champ mot de passe est laissé vide
pas de requete ldap... et pas de remontée dans spip/ldap.log, ce qui signifie
que la fonction vérifier($login,$pass) n'a pas été sollicitée... mais le gus
est authentifié... Curieux nan ?

Pour etre ~précis :
Si l'utilisateur ne c'est jamais connecté sur spip et qu'il propose
initialement aucun mdp, il est refusé par contre si il se connecte une
première fois en proposant son mot de passe il est authentifié puis la
deuxième ou Nième fois si il ne propose pas de mot de passe (champ vide) il
est accepté.

Je n'arrive pas encore a loger le pb que je rencontre...

Cordialement
Jean-Luc

From fil@miel.brainstorm.fr Wed Dec 11 17:37:34 2002

Return-Path: <fil@miel.brainstorm.fr>
Received: by miel.brainstorm.fr (Postfix, from userid 1001)
  id 95DD81C19C; Wed, 11 Dec 2002 17:37:34 +0100 (CET)

Bonsoir,

J'ai (un peu) recherché et, j'ai commenté la ligne 122 de spip_cookie.php3

//$ok = $auth->verifier_challenge_md5($login, $md5pass, $md5next);
if (!$ok && $session_password) $ok $auth->verifier($login,$session_password);

Et, là le problème de l'authentification ldap disparait... Cela dit ce n'est
pas la solution définitive :wink: car si j'essaie une authentification
"classique" sur la base Mysql avec un utilisateur non référencé dans
l'annuaire et créé dans l'interface spip, cette authentification échoue si la
ligne 122 est commenté...

Je découvre le code de spip ( Gros et bon boulot au passage :wink:

@+
j-l

Bonjour,

> Non mais cela peut arriver si ton serveur LDAP est trop laxiste.

Hmmm :wink: Comment le rendre moins laxiste ?

> J'ai essayé une correction dans la dernière version de SPIP,

Merci :slight_smile:

Vu :

// Securite, au cas ou le serveur LDAP est tres laxiste
if (!$login || !$pass) return false;

> tu peux tester ?

Même chose ! J'avais testé une chose similaire sans succes.

Pour tracer le pb que je rencontre, j'ai fais ceci :
Démarrer ldap en mode debug avec une redirection des sorties sur une
console et ajouter ceci dans inc_auth_ldfap.php3
$fp=fopen("/var/www/spip/ldap.log","a");
if($fp) {
      fputs($fp,"login : ".$login." pass : ".$pass."\n");
      fclose($fp);
}

Puis j'observe le fichier spip/ldap.log
et la sortie de slapd pendant les authentifications.

Et bien lorsque l'utilistateur propose un mdp (bon ou mauvais), j'ai des
requetes sur l'annuaire, par contre si le champ mot de passe est laissé
vide pas de requete ldap... et pas de remontée dans spip/ldap.log, ce qui
signifie que la fonction vérifier($login,$pass) n'a pas été sollicitée...
mais le gus est authentifié... Curieux nan ?

Pour etre ~précis :
Si l'utilisateur ne c'est jamais connecté sur spip et qu'il propose
initialement aucun mdp, il est refusé par contre si il se connecte une
première fois en proposant son mot de passe il est authentifié puis la
deuxième ou Nième fois si il ne propose pas de mot de passe (champ vide) il
est accepté.

Je n'arrive pas encore a loger le pb que je rencontre...

Cordialement
Jean-Luc
_______________________________________________
liste: http://listes.rezo.net/mailman/listinfo/spip-dev
doc: http://www.uzine.net/spip
cvs: http://rezo.net/spip-dev/devel/
From fil@miel.brainstorm.fr Wed Dec 11 21:20:40 2002

Return-Path: <fil@miel.brainstorm.fr>
Received: by miel.brainstorm.fr (Postfix, from userid 1001)
  id 0C9A51C041; Wed, 11 Dec 2002 21:20:40 +0100 (CET)

Salut,

Et, là le problème de l'authentification ldap disparait... Cela dit ce n'est
pas la solution définitive :wink: car si j'essaie une authentification
"classique" sur la base Mysql avec un utilisateur non référencé dans
l'annuaire et créé dans l'interface spip, cette authentification échoue si la
ligne 122 est commenté...

Tu as raison, l'authentification classique ne vérifiait pas si l'auteur
était bien un auteur spip (pas ldap). Du coup, le mot de passe ldap
n'étant pas stocké dans la base spip, le champ dans spip_auteurs est
vide et le mot de passe vide était accepté (car identique).

J'ai posté une nouvelle correction, tu pourrais réessayer ?
(toujours la même adresse :
http://rezo.net/spip-cvs/cvs_root.tar.gz?tarball=1&cvsroot=SPIP)

Amicalement

Antoine.

Bonjour,

J'ai posté une nouvelle correction, tu pourrais réessayer ?

Oui, c'est fait... Ca marche nickel :-)))

Deux autres points :
* la politique des logins