Libsmbclient: smbc_init

Richard Sharpe rsharpe at richardsharpe.com
Wed Nov 5 18:15:14 GMT 2003


On Wed, 5 Nov 2003, Sevastian Foglia wrote:

> Hello everyone!
> I have a problem with authentication by smbc_init.
> Is there a function to obtain a password from a username?
> I have tried with getpwname but it is not exact way.

Ummm, you can't get a password from a username. UNIX/Linux keeps the 
password hash only, as does Windows. The hash, is, in principle, 
non-reversible, although, in practice, brute-force or dictionary attacks 
sometimes work.

Can you tell us what you want to do?

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com




More information about the samba-technical mailing list