smbclient source code.( -k option )

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue Oct 12 04:06:36 MDT 2010

On Sun, Oct 10, 2010 at 10:19:00AM -0700, ranjith.rajendran at wrote:
> Thanks Volker for your valuable info...
> As I Understand that smbclient with -k options is to be used when we are trying to connect to AD Environment.
> Pls clarify on the below work flow :
> 1> smbclient uses kerberos security mechanism to connect to a PC.
> 2> If kerberos fails,it falls back to the common NTLM security mechanism and connects to the pc.

To be honest, I would have to test it myself. But this
sounds very likely.

> In order to implement kerberos security, I'm using following functions :
> /* Setting (or) Re-setting SMB_CONTEXT to kerberos mode accordingly */
> smbc_setOptionUseKerberos(context, option_value.b); 
> smbc_setOptionFallbackAfterKerberos(context, option_value.b);
> Please guide me to enable kerberos in my implementation.

Also, this sounds very good. If it does not work, please
give us more information what fails.

With best regards,

Volker Lendecke

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen

More information about the samba-technical mailing list