|
|
|
|
@ -66,8 +66,8 @@
|
|
|
|
|
#define check_domain_access_command(targeet) yon_char_append("adcli info --domain ",target)
|
|
|
|
|
#define get_domain_info_command(target) yon_char_append("ubdomain-client list ",target)
|
|
|
|
|
#define domains_seek_command "ubdomain-client discover"
|
|
|
|
|
#define domain_connect_command(target,user,password, addition) yon_char_unite("ubdomain-client join",yon_char_is_empty(user)?" --user \"":"",yon_char_is_empty(user)?user:"",yon_char_is_empty(user)?"\"":"",yon_char_is_empty(password)?" --password \"":"",yon_char_is_empty(password)?password:"",yon_char_is_empty(password)?"\"":""," --domain \"",target,"\"", addition,NULL)
|
|
|
|
|
#define domain_disconnect_command(target,user,password) yon_char_unite("ubdomain-client join",yon_char_is_empty(user)?" --user \"":"",yon_char_is_empty(user)?user:"",yon_char_is_empty(user)?"\"":"",yon_char_is_empty(password)?" --password \"":"",yon_char_is_empty(password)?password:"",yon_char_is_empty(password)?"\"":""," --domain \"",target,"\"",NULL)
|
|
|
|
|
#define domain_connect_command(target,user,password, addition) yon_char_unite("ubdomain-client join",!yon_char_is_empty(user)?" --user \"":"",!yon_char_is_empty(user)?user:"",!yon_char_is_empty(user)?"\"":"",!yon_char_is_empty(password)?" --password \"":"",!yon_char_is_empty(password)?password:"",!yon_char_is_empty(password)?"\"":""," --domain \"",target,"\"", addition,NULL)
|
|
|
|
|
#define domain_disconnect_command(target,user,password) yon_char_unite("ubdomain-client join",!yon_char_is_empty(user)?" --user \"":"",!yon_char_is_empty(user)?user:"",!yon_char_is_empty(user)?"\"":"",!yon_char_is_empty(password)?" --password \"":"",!yon_char_is_empty(password)?password:"",!yon_char_is_empty(password)?"\"":""," --domain \"",target,"\"",NULL)
|
|
|
|
|
#define kerberos_addition_command(target) yon_char_unite("--domain_server \"",target,"\"",NULL)
|
|
|
|
|
#define dns_addition_command(target) yon_char_unite("--dns \"",target,"\"",NULL)
|
|
|
|
|
#define client_addition_command(target) yon_char_unite("--domain_client \"",target,"\"",NULL)
|
|
|
|
|
|