Skip to main content
Participant
March 23, 2012
Question

windows authentication groups

  • March 23, 2012
  • 1 reply
  • 464 views

Hi All,

I've inherited a web server that uses windows authentication to allow users to login to a folder that contains the CMS files.  To make things more functional.  I would like to assign permissions to files within this folder based on the windows group the user is assigned to.  I know I can get the user name via:  #cgi.auth_user#.  How do I get the group?

TIA

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    March 23, 2012

    Someone's just posted a similar question on windows authentication . The scheme used there is

    ntauthObj = createObject("java", "jrun.security.NTAuth");

    ntauthObj.init(my_NT_DSN);

    ntauthObj.authenticateUser(username, pword);

    If you too have a similar authentication scheme, then you could use

    user_groups = ntauthObj.getUserGroups(username);

    or

    isUserIn =  ntauthObj.isUserInGroup(username, groupname);

    The NTAuth API gives you the details.