[Cascavel-pm] Como mudar senhas no meu LDAP?

Luis Motta Campos monsieur_champs em yahoo.com.br
Segunda Agosto 21 06:46:20 PDT 2006


Nelson Ferraz wrote:
> Luis Motta Campos wrote: O salt são os dois primeiros caracteres da
> senha! (Sem o "{CRYPT}", é claro.)
[code stripped out here]
> No caso do LDAP, há o passo adicional do decode_base64. ;)

-- $(perldoc -f crypt) --
When verifying an existing digest string you should use the digest as
the salt (like "crypt($plain, $digest) eq $digest").  The SALT
used to create the digest is visible as part of the digest.  This
ensures crypt() will hash the new string with the same salt as the
digest.  This allows your code to work with the standard crypt and with
more exotic implementations. In other words, do not assume anything
about the returned string itself, or how many bytes in the digest matter.
-- end perldoc --

  Eu (e as manpages) discordamos. Isto depende da implementação, e pode
sim ter mais bytes no salt do que você está dizendo.

  Putamplexos!
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Luis Motta Campos is Software Engineer, Oracle OCP/DBA, Un*x
 Sysadmin, Member of {Lisbon,São Paulo,Cascavel,Brasil,London}
 Perl Mongers and Perl Fanatic Evangelist
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Mais detalhes sobre a lista de discussão Cascavel-pm