Skip to content

Commit

Permalink
Enable MPGs and user/group enumeration on the LOCAL domain by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallagher committed Mar 18, 2009
1 parent 303f857 commit dd4568a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/confdb/confdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,15 @@ static int confdb_init_db(struct confdb_ctx *cdb)
ret = confdb_add_param(cdb, false, "config/domains", "default", val);
if(ret != EOK) goto done;

/* Set enumeration of LOCAL domain to 1 */
val[0] = "1";
/* Set enumeration of LOCAL domain to allow user and groups
* (mask 1: users, 2: groups)
*/
val[0] = "3";
ret = confdb_add_param(cdb, false, "config/domains/LOCAL", "enumerate", val);
if (ret != EOK) goto done;

/* LOCAL uses Magic Private Groups by default */
val[0] = "1";
val[0] = "TRUE";
ret = confdb_add_param(cdb, false, "config/domains/LOCAL", CONFDB_MPG, val);
if (ret != EOK) goto done;

Expand Down

0 comments on commit dd4568a

Please sign in to comment.