svn commit: samba r9195 - in branches: SAMBA_3_0/source/rpc_server
SAMBA_3_0_RELEASE/source/rpc_server
jerry at samba.org
jerry at samba.org
Sun Aug 7 20:28:53 GMT 2005
Author: jerry
Date: 2005-08-07 20:28:53 +0000 (Sun, 07 Aug 2005)
New Revision: 9195
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9195
Log:
setting log level to 2 instead of 0
Modified:
branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c
branches/SAMBA_3_0_RELEASE/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 20:10:21 UTC (rev 9194)
+++ branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2005-08-07 20:28:53 UTC (rev 9195)
@@ -814,7 +814,7 @@
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"));
+ DEBUG(2,("_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;
Modified: branches/SAMBA_3_0_RELEASE/source/rpc_server/srv_lsa_nt.c
===================================================================
--- branches/SAMBA_3_0_RELEASE/source/rpc_server/srv_lsa_nt.c 2005-08-07 20:10:21 UTC (rev 9194)
+++ branches/SAMBA_3_0_RELEASE/source/rpc_server/srv_lsa_nt.c 2005-08-07 20:28:53 UTC (rev 9195)
@@ -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(2,("_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