I have connected to an ADS server...
I am able to list the ADS users using "wbinfo -u" and the ADS groups using "wbinfo -g"

I wrote a program to get the ADS users by comparing the /etc/passwd file username with the username returned from the function "getpwent()"

But in this function if there is a local user with name as same as the ADS username it gets listed as an local user...

What i want to know is ... is there a function which is equivalent to the command "wbinfo -u" so that i can get the ADS users??