Libsmbclient: smbc_init

Richard Sharpe rsharpe at
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?

Richard Sharpe, rsharpe[at], rsharpe[at], 

More information about the samba-technical mailing list