Solved

Seeing return codes from active directory

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Why Is My Script Not Running at Login for Users? 8 31
Published Certificates in AD 2 12
automatic login 1 22
IT Contract Fee 17 75
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now