diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-15 09:19:47 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-15 15:39:36 +1000 |
commit | 52ae57850006abeb5d2ca90deeebf83a989ccf01 (patch) | |
tree | cbbb654c0fbd156fa0eb8de9faa52080c81a9352 | |
parent | 59d415f43f72146b15a721e928cf346777239bfc (diff) | |
download | samba-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.c | 2 |
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; } |