make samba forwarding a runtime configure option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13859 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -52,6 +52,7 @@ LDAP_message2entry(krb5_context context, HDB * db, LDAPMessage * msg,
|
|||||||
|
|
||||||
static const char *default_structural_object = "account";
|
static const char *default_structural_object = "account";
|
||||||
static char *structural_object;
|
static char *structural_object;
|
||||||
|
static int samba_forwardable;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@@ -1204,6 +1205,7 @@ LDAP_message2entry(krb5_context context, HDB * db, LDAPMessage * msg,
|
|||||||
goto out2;
|
goto out2;
|
||||||
|
|
||||||
/* Allow forwarding */
|
/* Allow forwarding */
|
||||||
|
if (samba_forwardable)
|
||||||
ent->flags.forwardable = TRUE;
|
ent->flags.forwardable = TRUE;
|
||||||
|
|
||||||
for (i=0; i < flags_len; i++) {
|
for (i=0; i < flags_len; i++) {
|
||||||
@@ -1673,6 +1675,10 @@ hdb_ldap_create(krb5_context context, HDB ** db, const char *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
samba_forwardable =
|
||||||
|
krb5_config_get_bool_default(context, NULL, TRUE,
|
||||||
|
"kdc", "hdb-samba-forwardable", NULL);
|
||||||
|
|
||||||
*db = malloc(sizeof(**db));
|
*db = malloc(sizeof(**db));
|
||||||
if (*db == NULL) {
|
if (*db == NULL) {
|
||||||
krb5_set_error_string(context, "malloc: out of memory");
|
krb5_set_error_string(context, "malloc: out of memory");
|
||||||
|
Reference in New Issue
Block a user