summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-08 19:42:26 +0200
committerGünther Deschner <gd@samba.org>2008-04-08 19:42:26 +0200
commitaf19343df8f3ac733538bed37b983b9488a01ef8 (patch)
treeb25c7239212c616d634d28c0353566a802d792bc /source3
parent298824357a5b94e92b6fb76fb02f2ebecf9e1a35 (diff)
downloadsamba-af19343df8f3ac733538bed37b983b9488a01ef8.tar.gz
samba-af19343df8f3ac733538bed37b983b9488a01ef8.tar.bz2
samba-af19343df8f3ac733538bed37b983b9488a01ef8.zip
Try to use kerberos in libnetapi.
Guenther (This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/getdc.c15
-rw-r--r--source3/lib/netapi/joindomain.c16
-rw-r--r--source3/lib/netapi/serverinfo.c8
3 files changed, 30 insertions, 9 deletions
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index 9ad935efd8..a865474019 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -50,7 +50,10 @@ WERROR NetGetDCName_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+ CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -103,7 +106,10 @@ WERROR NetGetAnyDCName_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+ CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -174,7 +180,10 @@ WERROR DsGetDcName_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS |
+ CLI_FULL_CONNECTION_ANONYMOUS_FALLBACK,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c
index 468360f146..48a6a91888 100644
--- a/source3/lib/netapi/joindomain.c
+++ b/source3/lib/netapi/joindomain.c
@@ -108,7 +108,9 @@ WERROR NetJoinDomain_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -248,7 +250,9 @@ WERROR NetUnjoinDomain_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -308,7 +312,9 @@ WERROR NetGetJoinInformation_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -450,7 +456,9 @@ WERROR NetGetJoinableOUs_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index e2a458cdc1..7cc84f5367 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -75,7 +75,9 @@ WERROR NetServerGetInfo_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);
@@ -189,7 +191,9 @@ WERROR NetServerSetInfo_r(struct libnetapi_ctx *ctx,
ctx->username,
ctx->workgroup,
ctx->password,
- 0, Undefined, NULL);
+ CLI_FULL_CONNECTION_USE_KERBEROS |
+ CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS,
+ Undefined, NULL);
if (!NT_STATUS_IS_OK(status)) {
werr = ntstatus_to_werror(status);