Progress and Active Directory

bpoppa

New Member
Hello,

I have been tasked with writing a procedure that we can use to auth users against active directory. Obviously I would need to use a com object. Has anyone done this with progress yet or can point me to some docs on some com objects I can use. I have not been very successful in finding any decent docs for this type of task.

Thanks!

Jim
 
I don't really follow ?

Please be more specific on what you're trying to accomplish.


The progress client working directory ?

Access permissions to certain directories ?

Initial directory used in files dialog boxes ?
 
I have a web application that I want to authenticate users against our Active Directory. Essentially do an LDAP bind as the user. I have code where I can anonimously query and pull data from AD, but I can seem to get it to bind as the user.

Thanks

Jim
 
joey.jeremiah said:
I don't really follow ?

Please be more specific on what you're trying to accomplish.


The progress client working directory ?

Access permissions to certain directories ?

Initial directory used in files dialog boxes ?

In case you misread or were not aware, he means this:

http://en.wikipedia.org/wiki/Active_Directory


Jim:

Unless someone supplies your solution, I reckon you will have to look up the various API information via (say) Google/MSDN and convert to Progress commands.

There is some (general) relavent info/examples in the Knowledgebase as well.
 
Lee,

Thanks for the reponse. I actually have it successfully authenticating against Active Directory...yay!!

Next step is to check to see if the user is in a specific group. Bad thing is the memberOf attribute returns an array.....If Progress only had arrays :(

Jim
 
bpoppa said:
Next step is to check to see if the user is in a specific group. Bad thing is the memberOf attribute returns an array.....If Progress only had arrays :(
That is correct (as return type), and according to the knowledgebase, there is no 'within-Progress' fix for that shortfall (at least for 9.1D, don't know about 10).

Maybe there are some other ADO/non-Progress calls you can use, that will return the info on a more micro-managed basis. Anyway, you will help us all if you post any general code you find useful.
 
Incidentally, a non ADO method is here:

KB : P24794
Title: "How to read information from a Primary Domain Controller (PDC) using 4GL and WIN32 API."

http://tinyurl.com/c3vwr


I don't know if this (or similar API calls) enables you to retrieve the extra info you are after.
 
Lee,

Yes I was able to get the non-ADO version working, but still can't access the darn memberOf attribute. Still not giving up though. If I do find a way around this I will certainly post. Thank you all very much for the help!!

Jim
 
I believe I read something about stored procedures, it seems to be possible there to handle array return values..... I don' t know how, and I don't know if this applies to your situation.

Casper.
 
bpoppa said:
Lee,

Yes I was able to get the non-ADO version working, but still can't access the darn memberOf attribute. Still not giving up though. If I do find a way around this I will certainly post. Thank you all very much for the help!!

Jim

Some other functions for you to experiment with:

http://tinyurl.com/asgg3
 
Back
Top