S3: Log warning in smbstatus about lack of pid in anonymous mode.
authortodd stecher <todd.stecher@gmail.com>
Thu, 12 Feb 2009 21:03:03 +0000 (13:03 -0800)
committerSteven Danneman <steven.danneman@isilon.com>
Thu, 19 Feb 2009 02:08:33 +0000 (18:08 -0800)
source3/utils/status.c

index 590444a42f6d42a9d2f3b0be0d6394464cd1657c..831bdcca185746249db8f001a35fc337a8a2170a 100644 (file)
@@ -409,6 +409,10 @@ static int traverse_sessionid(struct db_record *db, void *state)
                        d_printf("\nSamba version %s\n",samba_version_string());
                        d_printf("PID     Username      Group         Machine                        \n");
                        d_printf("-------------------------------------------------------------------\n");
+                       if (lp_security() == SEC_SHARE) {
+                               d_printf(" <processes do not show up in "
+                                   "anonymous mode>\n");
+                       }
 
                        db->traverse_read(db, traverse_sessionid, NULL);
                        TALLOC_FREE(db);