[Samba] API function for net join
Ovidiu Barzan
ovidiu.barzan at infoprint.com
Wed Oct 17 07:35:17 MDT 2012
Hi,
Is there an API function for C as an alternative to calling "net ads
join ...." from shell?
I'm trying not to use a system call like popen("net ads join ...","r");
because there are some problems with finding the reason for a failed join:
- Linux exit codes are limited to 8 bites so the net command return value
is of no help.
- Parsing the command output seems unreliable since the text could change
from one version to another.
Thank you for your help.
More information about the samba
mailing list