summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/dsdb/common/flag_mapping.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/dsdb/common/flag_mapping.c b/source4/dsdb/common/flag_mapping.c
index eab0d67825..150179b841 100644
--- a/source4/dsdb/common/flag_mapping.c
+++ b/source4/dsdb/common/flag_mapping.c
@@ -30,7 +30,7 @@ translated the ACB_CTRL Flags to UserFlags (userAccountControl)
/* mapping between ADS userAccountControl and SAMR acct_flags */
static const struct {
uint32_t uf;
- uint16_t acb;
+ uint32_t acb;
} acct_flags_map[] = {
{ UF_ACCOUNTDISABLE, ACB_DISABLED },
{ UF_HOMEDIR_REQUIRED, ACB_HOMDIRREQ },
@@ -45,7 +45,7 @@ static const struct {
{ UF_LOCKOUT, ACB_AUTOLOCK }
};
-uint32_t samdb_acb2uf(uint16_t acb)
+uint32_t samdb_acb2uf(uint32_t acb)
{
uint32_t i, ret = 0;
for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) {
@@ -59,10 +59,10 @@ uint32_t samdb_acb2uf(uint16_t acb)
/*
translated the UserFlags (userAccountControl) to ACB_CTRL Flags
*/
-uint16_t samdb_uf2acb(uint32_t uf)
+uint32_t samdb_uf2acb(uint32_t uf)
{
uint32_t i;
- uint16_t ret = 0;
+ uint32_t ret = 0;
for (i=0;i<ARRAY_SIZE(acct_flags_map);i++) {
if (acct_flags_map[i].uf & uf) {
ret |= acct_flags_map[i].acb;