Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Merged PR 3496: Disable daemon option for all AD users #124445
Browse files Browse the repository at this point in the history
  • Loading branch information
RBoulton-BT committed Nov 29, 2017
1 parent 849c296 commit 1d81a2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lsass/interop/nsswitch/aix/lam-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ LsaNssGetSupportedAttrs(
{S_PGRP, AL_USERATTR, SEC_CHAR},
{S_GROUPS, AL_USERATTR, SEC_LIST},
{S_GROUPSIDS, AL_USERATTR, SEC_LIST},
{S_DAEMONCHK, AL_USERATTR, SEC_BOOL},
{S_LOCKED, AL_USERATTR, SEC_BOOL},
{"SID", AL_USERATTR, SEC_CHAR},
{"UPN", AL_USERATTR, SEC_CHAR},
Expand All @@ -294,6 +295,7 @@ LsaNssGetSupportedAttrs(
&pList[17],
&pList[18],
&pList[19],
&pList[20],
NULL
};

Expand Down
4 changes: 4 additions & 0 deletions lsass/interop/nsswitch/aix/lam-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ LsaNssGetUserAttr(
&pResult->attr_un.au_char);
BAIL_ON_LSA_ERROR(dwError);
}
else if (!strcmp(pszAttribute, S_DAEMONCHK))
{
pResult->attr_un.au_int = 0;
}
else if (!strcmp(pszAttribute, S_LOCKED))
{
pResult->attr_un.au_int = pInfo->bAccountLocked;
Expand Down

0 comments on commit 1d81a2a

Please sign in to comment.