Link to home
Start Free TrialLog in
Avatar of o365Adm
o365Adm

asked on

AJAX connector from web to Activedirectory

We have few web based forms and we need to run a AJAX connector on local active directory to validate if the users alias/email address exists and have a Green symbol if exists or RED color symbol if it doesnt exists.
This will help us to validate from client end and save user time.
Can you please let me know if this is possible.
Avatar of LajuanTaylor
LajuanTaylor

I haven't dealt with making an A/D call directly using AJAX, but you can certainly query A/D using your server-side language and return the result as json. Your AJAX connector would then just interact with the returned json object.

If you have a good relationship with your database team, you could request a special table that's populated by A/D and kept fresh using a scheduled job. One benefit to this approach is that it can be used on your intranet and public facing site without worrying about making calls to A/D. The caveat is that the DBAs would have to establish a linked server connection to A/D in order to keep your table populated.
Avatar of o365Adm

ASKER

Hi Lajuan,

we dont maintain a database for storing objects as the number of users are comparitively less. Howver we could store the user alias/SMTP in a csv/txt file. Is it possible to query ajax from web to the local csv.

Could you also share a sample code for the same.

Thank you so much.
@o365Adm - What server-side language are you using PHP, .NET, ColdFusion?

Do you have an automated way to keep the .csv/.txt file updated?
Avatar of o365Adm

ASKER

Hi Lajuan,

We use ASP with powershell. Yes we have an automated process to update the csv file.
@o365Adm - Okay, one more thing. What A/D objects will your .csv file contain?

I don't need any data. Just the .csv file layout.
Avatar of o365Adm

ASKER

Sample format.
alias,smtp,UPN
xyz123,xyz@mydomain.com,xyz@upn.com
abc123,abc@mydomain.com,abc@upn.com
@o365Adm - Just to confirm... You want a sample using classic ASP versus ASP.NET. Is that correct?
Avatar of o365Adm

ASKER

Correct. We are using classic ASP.
ASKER CERTIFIED SOLUTION
Avatar of LajuanTaylor
LajuanTaylor

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of o365Adm

ASKER

Hi Lajuan,

Thank you . We have possibility to export data to JSON. I will try your solution.
Again thank you so much for your help.