Solved

Seeing return codes from active directory

Posted on 2009-07-16
1
368 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
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 2012 PKI in a hybrid org 3 48
Need help in modifying an existing script 2 19
Mysql Left Join Case 10 55
Mongo DB 18 46
Resolve DNS query failed errors for Exchange
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
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…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

810 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