libsmbclient: how to see if authentication succeeded
Willem van Engen
dev-list-samba at willem.engen.nl
Wed May 28 09:05:38 GMT 2008
On Tue, 2008-05-27 at 11:26 +0200, Andreas Schneider wrote:
> Willem van Engen wrote:
> > What would be the correct direction to proceed, exposing a login
> > function as I described in the previous mail?
>
> I suggest to use smbc_opendir() to check if you can access the share. If
> you're not authenticated or the username/password are wrong the auth_fn will
> be called.
Ok, that's clear. I'll have to dive into the code again to see how it
exactly interacts with libsmbclient again.
Thanks, I just may get there in a proper way using the current api.
Regards,
- Willem
More information about the samba-technical
mailing list