summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-15 09:19:47 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:36 +1000
commit52ae57850006abeb5d2ca90deeebf83a989ccf01 (patch)
treecbbb654c0fbd156fa0eb8de9faa52080c81a9352
parent59d415f43f72146b15a721e928cf346777239bfc (diff)
downloadsamba-52ae57850006abeb5d2ca90deeebf83a989ccf01.tar.gz
samba-52ae57850006abeb5d2ca90deeebf83a989ccf01.tar.bz2
samba-52ae57850006abeb5d2ca90deeebf83a989ccf01.zip
s4-netlogon: fixed logic for setting DS_SERVER_WRITABLE
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--source4/cldap_server/netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 1dd3cb7e0e..7192e4601f 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -261,7 +261,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
server_type |= DS_SERVER_KDC;
}
- if (samdb_rodc(sam_ctx, &am_rodc) != LDB_SUCCESS && !am_rodc) {
+ if (samdb_rodc(sam_ctx, &am_rodc) == LDB_SUCCESS && !am_rodc) {
server_type |= DS_SERVER_WRITABLE;
}