1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-21 12:23:50 +03:00

libnetapi: add libnetapi_set_use_kerberos

Don't unconditionally set the kerberos flag for authentication.

Guenther
(This used to be commit 15bef5ae41)
This commit is contained in:
Günther Deschner
2008-04-13 19:22:24 +02:00
parent 6318088434
commit aea1a244ee
4 changed files with 25 additions and 2 deletions

View File

@@ -48,6 +48,9 @@ void popt_common_callback(poptContext con,
case 'p':
libnetapi_set_password(ctx, arg);
break;
case 'k':
libnetapi_set_use_kerberos(ctx);
break;
}
}
@@ -56,6 +59,7 @@ struct poptOption popt_common_netapi_examples[] = {
{ "user", 'U', POPT_ARG_STRING, NULL, 'U', "Username used for connection", "USERNAME" },
{ "password", 'p', POPT_ARG_STRING, NULL, 'p', "Password used for connection", "PASSWORD" },
{ "debuglevel", 'd', POPT_ARG_STRING, NULL, 'd', "Debuglevel", "DEBUGLEVEL" },
{ "kerberos", 'k', POPT_ARG_NONE, NULL, 'k', "Use Kerberos", NULL },
POPT_TABLEEND
};