I know I often somehow fail to notice your posts (even when I have a ready answer), just for irony, I spotted this one immediately (but I know almost nothing about it).
Are you looking for some way to access AD information from within A-Shell under Linux?
Or Windows? In the Windows environment, the ADSI (Active Directory Services Interface) allows access from languages supporting COM, so one approach would be to use the A-Shell ActiveX SDK to create a VB-based subroutine. Nowadays, it would probably be easier to do it in .Net, although we don't currently have any in-process interface to that. (But perhaps you can make a deal with Jorge to get him to add some AD-related functionality to his NetCaller utility.)
In the Linux environment, there are various schemes for authenticating against AD, but I'm not aware of any straightforward C-based API.
In either case, given how many possible things you might want to do with AD, it is probably not going to be easy to create a simple XCALL interface. More likely, the approach would be to use some external language/tool to code the kind of operations you are interested in, and then work out how to call that via HOSTEX or some other external interface.