diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-20 04:56:47 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:02 -0500 |
commit | c86852aef89191a9a3116b622fa1aa2c7dfaffcd (patch) | |
tree | 39188726bfc8c39fc8cfc367d8a634e354e1686c /source4 | |
parent | dfbdd10c383538f676afeae8a24cba23a49492c5 (diff) | |
download | samba-c86852aef89191a9a3116b622fa1aa2c7dfaffcd.tar.gz samba-c86852aef89191a9a3116b622fa1aa2c7dfaffcd.tar.bz2 samba-c86852aef89191a9a3116b622fa1aa2c7dfaffcd.zip |
r11206: It appears to me that any account may operate as a server.
Andrew Bartlett
(This used to be commit 3b6c9c7cbc1d5c4dd32d3c1db18ddbccbb8cf17a)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/kdc/hdb-ldb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/kdc/hdb-ldb.c b/source4/kdc/hdb-ldb.c index 2f97fd6ee8..7635501064 100644 --- a/source4/kdc/hdb-ldb.c +++ b/source4/kdc/hdb-ldb.c @@ -116,6 +116,9 @@ static HDBFlags uf2HDBFlags(krb5_context context, int userAccountControl, enum h if (ent_type == HDB_LDB_ENT_TYPE_CLIENT || ent_type == HDB_LDB_ENT_TYPE_ANY) { flags.client = 1; } + if (ent_type == HDB_LDB_ENT_TYPE_SERVER || ent_type == HDB_LDB_ENT_TYPE_ANY) { + flags.server = 1; + } flags.invalid = 0; } @@ -144,8 +147,9 @@ static HDBFlags uf2HDBFlags(krb5_context context, int userAccountControl, enum h flags.invalid = 0; } + /* Not permitted to act as a client if disabled */ if (userAccountControl & UF_ACCOUNTDISABLE) { - flags.invalid = 1; + flags.client = 0; } if (userAccountControl & UF_LOCKOUT) { flags.invalid = 1; |