added "domain admin group" and "domain guest group" parameters. this is
authorLuke Leighton <lkcl@samba.org>
Thu, 4 Jun 1998 15:24:20 +0000 (15:24 +0000)
committerLuke Leighton <lkcl@samba.org>
Thu, 4 Jun 1998 15:24:20 +0000 (15:24 +0000)
because "domain admin users" and "domain guest users" was overloaded.

incorrectly.

source/include/proto.h
source/include/smb.h
source/param/loadparm.c
source/rpc_server/srv_util.c

index ff44a5841f5223c6493c38700d95998aa1a3e2bb..737ae945715e19ae707f91d8e012396157637be7 100644 (file)
@@ -956,6 +956,8 @@ char *lp_driverfile(void);
 char *lp_domain_sid(void);
 char *lp_domain_other_sids(void);
 char *lp_domain_groups(void);
+char *lp_domain_admin_group(void);
+char *lp_domain_guest_group(void);
 char *lp_domain_admin_users(void);
 char *lp_domain_guest_users(void);
 char *lp_domain_hostsallow(void);
index cdac9cb720f3c8678ce4111d44843b0859db189d..214b36e704bc785272e7e782fe07e5cfff29af9e 100644 (file)
@@ -687,6 +687,15 @@ struct passdb_ops {
   struct sam_disp_info *(*getsamdispnam)(char *);
   struct sam_disp_info *(*getsamdisprid)(uint32);
   struct sam_disp_info *(*getsamdispent)(void *);
+
+#if 0
+  /*
+   * password checking functions
+   */
+  struct smb_passwd *(*smb_password_chal  )(char *username, char lm_pass[24], char nt_pass[24], char chal[8]);
+  struct smb_passwd *(*smb_password_check )(char *username, char lm_hash[16], char nt_hash[16],
+  struct passwd     *(*unix_password_check)(char *username, char *pass, int pass_len);
+#endif
 };
 
 /* this is used for smbstatus */
index 83aa2666a7188ce941a0502c9b59af52d712caa5..436a43240b0beb71980d94377ecd511736c25193 100644 (file)
@@ -119,6 +119,8 @@ typedef struct
   char *szSocketOptions;
   char *szValidChars;
   char *szWorkGroup;
+  char *szDomainAdminGroup;
+  char *szDomainGuestGroup;
   char *szDomainAdminUsers;
   char *szDomainGuestUsers;
   char *szDomainHostsallow; 
@@ -586,6 +588,8 @@ static struct parm_struct parm_table[] =
   {"domain other sids",P_STRING,  P_GLOBAL, &Globals.szDomainOtherSIDs, NULL,   NULL,  0},
   {"domain groups",    P_STRING,  P_GLOBAL, &Globals.szDomainGroups,    NULL,   NULL,  0},
   {"domain controller",P_BOOL  ,  P_GLOBAL, &Globals.bDomainController,NULL,   NULL,  0},
+  {"domain admin group",P_STRING, P_GLOBAL, &Globals.szDomainAdminGroup, NULL,   NULL,  0},
+  {"domain guest group",P_STRING, P_GLOBAL, &Globals.szDomainGuestGroup, NULL,   NULL,  0},
   {"domain admin users",P_STRING, P_GLOBAL, &Globals.szDomainAdminUsers, NULL,   NULL,  0},
   {"domain guest users",P_STRING, P_GLOBAL, &Globals.szDomainGuestUsers, NULL,   NULL,  0},
   {"domain hosts allow",P_STRING, P_GLOBAL, &Globals.szDomainHostsallow, NULL,   NULL,  0},
@@ -986,6 +990,8 @@ FN_GLOBAL_STRING(lp_driverfile,&Globals.szDriverFile)
 FN_GLOBAL_STRING(lp_domain_sid,&Globals.szDomainSID)
 FN_GLOBAL_STRING(lp_domain_other_sids,&Globals.szDomainOtherSIDs)
 FN_GLOBAL_STRING(lp_domain_groups,&Globals.szDomainGroups)
+FN_GLOBAL_STRING(lp_domain_admin_group,&Globals.szDomainAdminGroup)
+FN_GLOBAL_STRING(lp_domain_guest_group,&Globals.szDomainGuestGroup)
 FN_GLOBAL_STRING(lp_domain_admin_users,&Globals.szDomainAdminUsers)
 FN_GLOBAL_STRING(lp_domain_guest_users,&Globals.szDomainGuestUsers)
 FN_GLOBAL_STRING(lp_domain_hostsallow,&Globals.szDomainHostsallow)
index fca37db717455be318a15744ca30b33e111d50a8..64f2e7a0d92aaf294d341465bcf408185f365822 100644 (file)
@@ -312,26 +312,26 @@ void get_domain_user_groups(char *domain_groups, char *user)
        pstrcpy(domain_groups, lp_domain_groups());
 
        /* can only be a user or a guest.  cannot be guest _and_ admin */
-       if (user_in_list(user, lp_domain_guest_users()))
+       if (user_in_list(user, lp_domain_guest_group()))
        {
                slprintf(tmp, sizeof(tmp) - 1, " %ld/7 ", DOMAIN_GROUP_RID_GUESTS);
                pstrcat(domain_groups, tmp);
 
-               DEBUG(3,("domain guest access %s granted\n", tmp));
+               DEBUG(3,("domain guest group access %s granted\n", tmp));
        }
        else
        {
                slprintf(tmp, sizeof(tmp) -1, " %ld/7 ", DOMAIN_GROUP_RID_USERS);
                pstrcat(domain_groups, tmp);
 
-               DEBUG(3,("domain user access %s granted\n", tmp));
+               DEBUG(3,("domain group access %s granted\n", tmp));
 
-               if (user_in_list(user, lp_domain_admin_users()))
+               if (user_in_list(user, lp_domain_admin_group()))
                {
                        slprintf(tmp, sizeof(tmp) - 1, " %ld/7 ", DOMAIN_GROUP_RID_ADMINS);
                        pstrcat(domain_groups, tmp);
 
-                       DEBUG(3,("domain admin access %s granted\n", tmp));
+                       DEBUG(3,("domain admin group access %s granted\n", tmp));
                }
        }
 }