static GtkWidget *txt_password_conferma;
/* PRIVATE */
-#ifdef HAVE_LIBCONFI
+#ifdef HAVE_LIBZAKCONFI
static gboolean
-get_connection_parameters_from_confi (Confi *confi, gchar **host, gchar **base_dn, gchar **user_field)
+get_connection_parameters_from_confi (ZakConfi *confi, gchar **host, gchar **base_dn, gchar **user_field)
{
gboolean ret = TRUE;
- *host = confi_path_get_value (confi, "aute/aute-ldap/ldap/host");
- *base_dn = confi_path_get_value (confi, "aute/aute-ldap/ldap/base_dn");
- *user_field = confi_path_get_value (confi, "aute/aute-ldap/ldap/user_field");
+ *host = zak_confi_path_get_value (confi, "libzakauthe/libzaautheldap/ldap/host");
+ *base_dn = zak_confi_path_get_value (confi, "libzakauthe/libzakautheldap/ldap/base_dn");
+ *user_field = zak_confi_path_get_value (confi, "libzakauthe/libzakautheldap/ldap/user_field");
if (*host == NULL
|| strcmp (g_strstrip (*host), "") == 0
base_dn = NULL;
user_field = NULL;
-#ifdef HAVE_LIBCONFI
+#ifdef HAVE_LIBZAKCONFI
/* the first and only parameters must be a Confi object */
/* leggo i parametri di connessione dalla configurazione */
- if (IS_CONFI (parameters->data))
+ if (ZAK_IS_CONFI (parameters->data))
{
- if (!get_connection_parameters_from_confi (CONFI (parameters->data), &host, &base_dn, &user_field))
+ if (!get_connection_parameters_from_confi (ZAK_CONFI (parameters->data), &host, &base_dn, &user_field))
{
host = NULL;
base_dn = NULL;
retldap = ldap_initialize (&ldap, host);
if (retldap != LDAP_SUCCESS)
{
- g_warning ("Errore nell'inizializzazione.\n%s\n", ldap_err2string (retldap));
+ g_warning ("Error on ldap initialization.\n%s\n", ldap_err2string (retldap));
return NULL;
}
retldap = ldap_set_option (ldap, LDAP_OPT_PROTOCOL_VERSION, &version);
if (retldap != LDAP_OPT_SUCCESS)
{
- g_warning ("Errore nell'impostazione della versione del protocollo.\n%s\n", ldap_err2string (retldap));
+ g_warning ("Error on setting ldap protocol version.\n%s\n", ldap_err2string (retldap));
return NULL;
}
retldap = ldap_simple_bind_s (ldap, user_dn, password);
if (retldap != LDAP_SUCCESS)
{
- g_warning ("Errore nel bind.\n%s\n", ldap_err2string (retldap));
+ g_warning ("Error on ldap bind.\n%s\n", ldap_err2string (retldap));
return NULL;
}
retldap = ldap_unbind (ldap);
if (retldap != LDAP_SUCCESS)
{
- g_warning ("Errore nell'unbind.\n%s\n", ldap_err2string (retldap));
+ g_warning ("Error on ldap unbind.\n%s\n", ldap_err2string (retldap));
return NULL;
}
error = NULL;
GtkBuilder *gtkbuilder = gtk_builder_new ();
- if (!gtk_builder_add_from_file (gtkbuilder, GUIDIR "/auteldap.gui", &error))
+ if (!gtk_builder_add_from_file (gtkbuilder, GUIDIR "/zakautheldap.gui", &error))
{
return NULL;
}