|
|
|
|
@ -67,19 +67,19 @@
|
|
|
|
|
#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 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)
|
|
|
|
|
#define domain_disconnect_command(target,user,password) yon_char_unite("ubdomain-client leave",!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)
|
|
|
|
|
|
|
|
|
|
#define domain_info(target) yon_char_append("ubdomain-client discover --domain ",target)
|
|
|
|
|
#define domain_info(target) yon_char_unite("ubdomain-client discover --domain \"",target,"\"",NULL)
|
|
|
|
|
|
|
|
|
|
#define domain_connected_icon "com.ublinux.ubl-settings-system.plug-connected-symbolic"
|
|
|
|
|
#define domain_disconnected_icon "com.ublinux.ubl-settings-system.plug-disconnected-symbolic"
|
|
|
|
|
|
|
|
|
|
#define domain_connect_check "ubdomain-client list|grep -q \"configured\""
|
|
|
|
|
|
|
|
|
|
#define domain_check_alive(target) yon_char_unite("dig +time=1 +tries=1 -t SRV _ldap.tcp.",target," @",target," &>/dev/null",NULL)
|
|
|
|
|
#define domain_check_alive(target) yon_char_unite("timeout --kill-after=0.1 2 dig +time=1 +tries=1 +noall -t SRV _ldap._tcp.",target," @",target," &>/dev/null",NULL)
|
|
|
|
|
|
|
|
|
|
#define DOMAIN "DOMAIN"
|
|
|
|
|
#define DOMAIN_ADMANGER "DOMAIN[admanger]"
|
|
|
|
|
@ -180,6 +180,8 @@ typedef struct {
|
|
|
|
|
typedef struct {
|
|
|
|
|
GtkWidget *Window;
|
|
|
|
|
|
|
|
|
|
GtkWidget *HeadLabel;
|
|
|
|
|
|
|
|
|
|
GtkWidget *ExecuteTerminal;
|
|
|
|
|
GtkWidget *TerminalScroll;
|
|
|
|
|
} domain_info_window;
|
|
|
|
|
|