Solved

Seeing return codes from active directory

Posted on 2009-07-16
1
376 Views
Last Modified: 2015-01-05
HI all,
I am testing a web application that when users login, they are authenticated against the companies Active Directory.
What I need to do is, once the application makes a call to the AD for authentication, I want to see the AD code returned to the application e.g. 52e for a valid account, 530 for an account that is currently time restricted etc..
Can anyone tell me how to do this?!?
Many thanks in advance!!!
0
Comment
Question by:paddykool
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 22

Accepted Solution

by:
Paka earned 500 total points
ID: 24892488
To get that type of detail, you'll have to create a function that will return a value based upon a query to Active Directory for the individual account details.  Here are a couple examples in VBScript:
http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/usersgroups/users/#DisplayAllowedLogon.htm
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question