summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-02 18:48:15 +0200
committerGünther Deschner <gd@samba.org>2009-04-02 22:52:52 +0200
commit31ab1d6a6487fb442ccd5b2cd093b4a2b7b80291 (patch)
tree99765e8ff7a715bc8f26c63a185ba2894558b31b /source3/rpc_server
parent168eb23252c14234d09f7038b9894edf86e0efe1 (diff)
downloadsamba-31ab1d6a6487fb442ccd5b2cd093b4a2b7b80291.tar.gz
samba-31ab1d6a6487fb442ccd5b2cd093b4a2b7b80291.tar.bz2
samba-31ab1d6a6487fb442ccd5b2cd093b4a2b7b80291.zip
s3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 0eee4a903b..0ce2b40f65 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -648,14 +648,14 @@ NTSTATUS _lsa_QueryInfoPolicy(pipes_struct *p,
* only a BDC is a backup controller
* of the domain, it controls.
*/
- info->role.role = 2;
+ info->role.role = LSA_ROLE_BACKUP;
break;
default:
/*
* any other role is a primary
* of the domain, it controls.
*/
- info->role.role = 3;
+ info->role.role = LSA_ROLE_PRIMARY;
break;
}
break;