On Tue, 2002-04-16 at 18:53, Henning Brauer wrote:
> gah!
> please wrap your lines at 72 chars.
> I don't take the hassle to reformat your message so I can quote proper now.
> 
> On Tue, Apr 16, 2002 at 01:41:37PM -0400, Mike Lichtenwalner wrote:
> > The passwords are all in crypt format but some of them begin with {crypt} 
> > and others begin with {CRYPT}.
> 
> totally untested:
> 
> --- checkpassword.c.o2        Tue Apr 16 19:49:12 2002
> +++ checkpassword.c   Tue Apr 16 19:50:25 2002
> @@ -347,7 +347,7 @@
>       int  shift;
>       
>       if (encrypted[0] == '{') { /* hashed */
> -             if (!str_diffn("{crypt}", encrypted, 7) ) {
> +             if (!str_diffn("{crypt}", encrypted, 7) || !str_diffn("{CRYPT}", 
>encrypted, 7) ) {
>                       /* CRYPT */
>                       shift = 7;
>                       str_copy(hashed, crypt(clear, encrypted+shift) );
> 
> 

or set ldaprebind to 1. OpenLDAP should be able to handle both cases.

-- 
Ricardo Cerqueira 
Novis Telecom  -  ISP Engineering
Edif�cio Novis -  Estrada da Outurela, 118 B / 2795-606 Carnaxide
Tel: +351 2 1010 0000 - Fax: +351 2 1010 4459

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to