svn commit: samba r9194 - in branches/SAMBA_3_0/source/rpc_server: .
jerry at samba.org
jerry at samba.org
Sun Aug 7 20:10:22 GMT 2005
Author: jerry
Date: 2005-08-07 20:10:21 +0000 (Sun, 07 Aug 2005)
New Revision: 9194
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9194
Log:
do not enumerate privileges when they are not enabled
Modified:
branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2005-08-07 19:56:50 UTC (rev 9193)
+++ branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2005-08-07 20:10:21 UTC (rev 9194)
@@ -805,12 +805,17 @@
struct lsa_info *handle;
uint32 i;
uint32 enum_context = q_u->enum_context;
- int num_privs = count_all_privileges();
+ int num_privs = 0;
LSA_PRIV_ENTRY *entries = NULL;
LUID_ATTR luid;
/* remember that the enum_context starts at 0 and not 1 */
+ if ( lp_enable_privileges() )
+ num_privs = count_all_privileges();
+ else
+ DEBUG(0,("_lsa_enum_privs: client trying to enumerate privileges by not enabled in smb.conf!\n"));
+
if ( enum_context >= num_privs )
return NT_STATUS_NO_MORE_ENTRIES;
More information about the samba-cvs
mailing list