Solved

Seeing return codes from active directory

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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Display SQL maintenance plan SQL Code 3 47
GPO denied - but why ? 6 57
Configure Windows Server 2012 time server 3 37
Powershell script to list number of users in an OU 6 28
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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 to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

734 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