1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

r14442: the ACB_ flags are 32 bit...

metze
(This used to be commit a653ebd15d)
This commit is contained in:
Stefan Metzmacher
2006-03-15 11:56:58 +00:00
committed by Gerald (Jerry) Carter
parent 22244f0e9b
commit 475bbbfa84

View File

@ -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;