From 5c0d19792d9aa7e934e057401a46310ad2b32a2f Mon Sep 17 00:00:00 2001 From: nalin Date: Dec 10 2001 20:40:42 +0000 Subject: refactor the front-end/back-end changes to add the gtk version --- diff --git a/Makefile b/Makefile index cb6191f..4edf56e 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,21 @@ VERSION=$(shell awk '/Version:/ { print $$2 }' authconfig.spec) CVSTAG = r$(subst .,-,$(VERSION)) -PROGNAME = authconfig - -GLIBCONFIG=glib-config -CFLAGS += -Wall -DPACKAGE=\"$(PROGNAME)\" -DVERSION=\"$(VERSION)\" `$(GLIBCONFIG) --cflags` $(RPM_OPT_FLAGS) $(EXTRA_CFLAGS) -LOADLIBES = `$(GLIBCONFIG) --libs` -lnewt -lpopt -lresolv +PACKAGE = authconfig + +CFLAGS = -g3 -Wall -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" +CFLAGS += $(shell pkg-config --cflags glib-2.0) +CFLAGS += $(shell pkg-config --cflags libglade-2.0) +LIBS = -lnewt -lpopt -lresolv +GLIBLIBS = $(shell pkg-config --libs glib-2.0) +LIBGLADELIBS = $(shell pkg-config --libs libglade-2.0) SUBDIRS = po man datadir=/usr/share mandir=/usr/man sbindir=/usr/sbin +CFLAGS += -DDATADIR=\"$(datadir)\" -all: subdirs $(PROGNAME) +all: subdirs authconfig authconfig-gtk subdirs: for d in $(SUBDIRS); do \ @@ -19,28 +23,32 @@ subdirs: || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;\ done && test -z "$$fail" -authconfig: $(PROGNAME).o authinfo.o shvar.o dnsclient.o - $(CC) -o $(PROGNAME) $^ $(LOADLIBES) +authconfig: authconfig.o authinfo.o shvar.o dnsclient.o + $(CC) -o $@ $^ $(GLIBLIBS) $(LIBS) + +authconfig-gtk: authconfig-gtk.o authinfo.o shvar.o dnsclient.o + $(CC) -o $@ $^ $(LIBGLADELIBS) $(LIBS) install: - mkdir -p $(sbindir) $(mandir)/man8 + mkdir -p $(sbindir) $(mandir)/man8 $(datadir)/$(PACKAGE) mkdir -p $(INSTROOT)$(sysconfdir)/pam.d - install -m 755 $(PROGNAME) $(sbindir)/$(PROGNAME) + install -m 755 $(PACKAGE) $(sbindir)/$(PACKAGE) + install -m 644 $(PACKAGE).glade2 $(datadir)/$(PACKAGE)/$(PACKAGE).glade for d in $(SUBDIRS); do \ (cd $$d; $(MAKE) sbindir=$(sbindir) install) \ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;\ done && test -z "$$fail" clean: - rm -f $(PROGNAME) *.o + rm -f authconfig authconfig-gtk *.o make -C po clean archive: cvs -d `cat CVS/Root` tag -cFR $(CVSTAG) . - @rm -rf /tmp/$(PROGNAME)-$(VERSION) /tmp/$(PROGNAME) - @dir=$$PWD; cd /tmp; cvs -d `cat $$dir/CVS/Root` export -r$(CVSTAG) $(PROGNAME) - @mv /tmp/$(PROGNAME) /tmp/$(PROGNAME)-$(VERSION) - @dir=$$PWD; cd /tmp; tar cvzf $$dir/$(PROGNAME)-$(VERSION).tar.gz \ - $(PROGNAME)-$(VERSION) - @rm -rf /tmp/$(PROGNAME)-$(VERSION) - @echo "The archive is in $(PROGNAME)-$(VERSION).tar.gz" + @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) + @dir=$$PWD; cd /tmp; cvs -d `cat $$dir/CVS/Root` export -r$(CVSTAG) $(PACKAGE) + @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) + @dir=$$PWD; cd /tmp; tar cvzf $$dir/$(PACKAGE)-$(VERSION).tar.gz \ + $(PACKAGE)-$(VERSION) + @rm -rf /tmp/$(PACKAGE)-$(VERSION) + @echo "The archive is in $(PACKAGE)-$(VERSION).tar.gz" diff --git a/authconfig-gtk.c b/authconfig-gtk.c new file mode 100644 index 0000000..55b6d71 --- /dev/null +++ b/authconfig-gtk.c @@ -0,0 +1,365 @@ + /* + * Authconfig - client authentication configuration program + * Copyright (c) 2001 Red Hat, Inc. + * + * Authors: Nalin Dahyabhai + * Current maintainer: Nalin Dahyabhai + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "authinfo.h" +#ifdef LOCAL_POLICIES +#include "localpol.h" +#endif + +#define XMLNAME "XML" +#define AUTHINFONAME "AUTHINFO" +#define GLADEFILE (DATADIR "/" PACKAGE "/" PACKAGE ".glade") + +static struct package_needed_warning { + const char *name, *path, *service, *package; +} package_needed_warnings[] = { + {"enablecache", PATH_NSCD, "caching", "nscd"}, + {"enablenis", PATH_YPBIND, "NIS", "ypbind"}, + {"enableldap", PATH_LIBNSS_LDAP, "LDAP", "nss_ldap"}, + {"enableldapauth", PATH_PAM_LDAP, "LDAP", "nss_ldap"}, + {"enablekerberos", PATH_PAM_KRB5, "Kerberos", "pam_krb5"}, + {"enablesmb", PATH_PAM_SMB, "SMB", "pam_smb"}, +}; + +struct config_map { + const char *name; + enum {boolean, string} type; + size_t offset; +}; + +static struct config_map mainsettings[] = { + {"enablecache", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableCache)}, + {"enablehesiod", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableHesiod)}, + {"enablenis", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableNIS)}, + {"enableldap", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableLDAP)}, + {"enableshadow", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableShadow)}, + {"enablemd5", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableMD5)}, + {"enablekerberos", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableKerberos)}, + {"enableldapauth", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableLDAPAuth)}, + {"enablesmb", boolean, + G_STRUCT_OFFSET(struct authInfoType, enableSMB)}, + {NULL, 0, 0}, +}; + +static struct config_map hesiodsettings[] = { + {"lhs", string, + G_STRUCT_OFFSET(struct authInfoType, hesiodLHS)}, + {"rhs", string, + G_STRUCT_OFFSET(struct authInfoType, hesiodRHS)}, + {NULL, 0, 0}, +}; + +static struct config_map kerberossettings[] = { + {"realm", string, + G_STRUCT_OFFSET(struct authInfoType, kerberosRealm)}, + {"kdc", string, + G_STRUCT_OFFSET(struct authInfoType, kerberosKDC)}, + {"adminserver", string, + G_STRUCT_OFFSET(struct authInfoType, kerberosAdminServer)}, + {NULL, 0, 0}, +}; + +static struct config_map ldapsettings[] = { + {"basedn", string, + G_STRUCT_OFFSET(struct authInfoType, ldapBaseDN)}, + {"server", string, + G_STRUCT_OFFSET(struct authInfoType, ldapServer)}, + {NULL, 0, 0}, +}; + +static struct config_map nissettings[] = { + {"domain", string, + G_STRUCT_OFFSET(struct authInfoType, nisDomain)}, + {"server", string, + G_STRUCT_OFFSET(struct authInfoType, nisServer)}, + {NULL, 0, 0}, +}; + +static struct config_map smbsettings[] = { + {"workgroup", string, + G_STRUCT_OFFSET(struct authInfoType, smbWorkgroup)}, + {"domaincontrollers", string, + G_STRUCT_OFFSET(struct authInfoType, smbServers)}, + {NULL, 0, 0}, +}; + +static struct config_dialog { + const char *name, *dialog; + struct config_map *map; +} config_dialogs[] = { + {"confignis", "nissettings", nissettings}, + {"confighesiod", "hesiodsettings", hesiodsettings}, + {"configldap", "ldapsettings", ldapsettings}, + {"configldapauth", "ldapsettings", ldapsettings}, + {"configkerberos", "kerberossettings", kerberossettings}, + {"configsmb", "smbsettings", smbsettings}, +}; + +static void +check_warn(GtkWidget *widget, struct package_needed_warning *warning) +{ + GtkWidget *dialog; + + if (access(warning->path, R_OK) == 0) { + return; + } + if (GTK_IS_CHECK_BUTTON(widget)) { + if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) { + dialog = gtk_message_dialog_new(NULL, + 0, + GTK_MESSAGE_WARNING, + GTK_BUTTONS_CLOSE, + AUTHCONFIG_PACKAGE_WARNING, + warning->path, + warning->service, + warning->package); + gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + } + } +} + +static void +set_config(GladeXML *xml, struct authInfoType *authInfo, struct config_map *map) +{ + int i; + gboolean bval; + char *sval; + GtkWidget *widget; + for(i = 0; map[i].name != NULL; i++) { + widget = glade_xml_get_widget(xml, map[i].name); + switch(map[i].type) { + case boolean: + g_assert(GTK_IS_CHECK_BUTTON(widget)); + bval = G_STRUCT_MEMBER(gboolean, + authInfo, + map[i].offset); + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(widget), + bval); + + break; + case string: + g_assert(GTK_IS_ENTRY(widget)); + sval = G_STRUCT_MEMBER(char *, + authInfo, + map[i].offset); + gtk_entry_set_text(GTK_ENTRY(widget), sval ?: ""); + break; + } + } +} + +static void +get_config(GtkWidget *widget, struct config_map *map) +{ + int i; + gboolean bval; + char *sval; + const char *text; + struct authInfoType *authInfo; + GladeXML *xml; + + authInfo = g_object_get_data(G_OBJECT(widget), AUTHINFONAME); + xml = g_object_get_data(G_OBJECT(widget), XMLNAME); + + for(i = 0; map[i].name != NULL; i++) { + widget = glade_xml_get_widget(xml, map[i].name); + switch(map[i].type) { + case boolean: + g_assert(GTK_IS_CHECK_BUTTON(widget)); + bval = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget)); + G_STRUCT_MEMBER(gboolean, + authInfo, + map[i].offset) = bval; + break; + case string: + g_assert(GTK_IS_ENTRY(widget)); + text = gtk_entry_get_text(GTK_ENTRY(widget)); + sval = text ? g_strdup(text) : NULL; + g_free(G_STRUCT_MEMBER(char *, + authInfo, + map[i].offset)); + G_STRUCT_MEMBER(char *, + authInfo, + map[i].offset) = sval; + break; + } + } +} + +static void +show_dialog(GtkWidget *widget, struct config_dialog *dialog) +{ + GladeXML *xml; + GtkWidget *window; + struct authInfoType *authInfo; + + xml = glade_xml_new(GLADEFILE, dialog->dialog, PACKAGE); + g_assert(xml != NULL); + window = glade_xml_get_widget(xml, dialog->dialog); + g_assert(GTK_IS_WINDOW(window)); + + authInfo = g_object_get_data(G_OBJECT(widget), AUTHINFONAME); + g_assert(authInfo != NULL); + + set_config(xml, authInfo, dialog->map); + + widget = glade_xml_get_widget(xml, dialog->dialog); + g_assert(GTK_IS_WINDOW(widget)); + gtk_window_set_modal(GTK_WINDOW(widget), TRUE); + + widget = glade_xml_get_widget(xml, "close"); + g_signal_connect_swapped(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(gtk_widget_destroy), window); + + widget = glade_xml_get_widget(xml, "apply"); + g_object_set_data(G_OBJECT(widget), AUTHINFONAME, authInfo); + g_object_set_data(G_OBJECT(widget), XMLNAME, xml); + g_signal_connect(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(get_config), dialog->map); + g_signal_connect_swapped(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(gtk_widget_destroy), + window); + + gtk_widget_show_all(window); +} + +static void +save_info(GtkWidget *ignored, struct authInfoType *authInfo) +{ + if(authInfoWrite(authInfo) == FALSE) { + g_warning(i18n("%s: critical error writing configuration"), + PACKAGE); + } else { + authInfoPost(authInfo, FALSE); + } +} + +static void +create_main_window(struct authInfoType *authInfo) +{ + GladeXML *xml; + GtkWidget *window, *widget; + int i; + xml = glade_xml_new(GLADEFILE, "authconfig", PACKAGE); + g_assert(xml != NULL); + glade_xml_signal_autoconnect(xml); + + for(i = 0; i < G_N_ELEMENTS(package_needed_warnings); i++) { + widget = glade_xml_get_widget(xml, + package_needed_warnings[i].name); + g_assert(GTK_IS_CHECK_BUTTON(widget)); + g_signal_connect(G_OBJECT(widget), "toggled", + GTK_SIGNAL_FUNC(check_warn), + &package_needed_warnings[i]); + } + + for(i = 0; i < G_N_ELEMENTS(config_dialogs); i++) { + widget = glade_xml_get_widget(xml, + config_dialogs[i].name); + g_assert(GTK_IS_BUTTON(widget)); + g_object_set_data(G_OBJECT(widget), XMLNAME, xml); + g_object_set_data(G_OBJECT(widget), AUTHINFONAME, authInfo); + g_signal_connect(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(show_dialog), + &config_dialogs[i]); + } + + set_config(xml, authInfo, mainsettings); + + widget = glade_xml_get_widget(xml, "apply"); + g_assert(GTK_IS_BUTTON(widget)); + g_object_set_data(G_OBJECT(widget), AUTHINFONAME, authInfo); + g_object_set_data(G_OBJECT(widget), XMLNAME, xml); + g_signal_connect(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(get_config), mainsettings); + g_signal_connect_after(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(save_info), authInfo); + g_signal_connect_swapped(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(gtk_main_quit), NULL); + + widget = glade_xml_get_widget(xml, "close"); + window = glade_xml_get_widget(xml, "authconfig"); + + g_signal_connect_swapped(G_OBJECT(widget), "clicked", + GTK_SIGNAL_FUNC(gtk_main_quit), window); + + gtk_widget_show(window); +} + +int +main(int argc, char **argv) +{ + struct authInfoType *authInfo = NULL; + + /* Tell gettext where the messages for this package, then make this + * package the default domain for messages. */ + bindtextdomain(PACKAGE, DATADIR "/locale"); + textdomain(PACKAGE); + + /* We can't really do anything unless we're root, so bail if we're + * not the superuser. */ + if(getuid() != 0) { + fprintf(stderr, i18n("%s: can only be run as root\n"), + PACKAGE); + return 2; + } + + /* Read the current configuration. */ + authInfo = authInfoRead(); + if (authInfo == NULL) { + g_error(i18n("%s: critical error reading system configuration"), + PACKAGE); + } + + /* Initialize GTK, create the main dialog, and run with it. */ + gtk_init(&argc, &argv); + gtk_set_locale(); + create_main_window(authInfo); + gtk_main(); + + return 0; +} diff --git a/authconfig.c b/authconfig.c index f38a582..58acf40 100644 --- a/authconfig.c +++ b/authconfig.c @@ -1062,59 +1062,7 @@ main(int argc, const char **argv) } /* kickstart */ if (test) { - printf("caching is %s\n", authInfo->enableCache ? "enabled" : "disabled"); - printf("nss_files is always enabled\n"); - printf("nss_hesiod is %s\n", - authInfo->enableHesiod ? "enabled" : "disabled"); - printf(" hesiod LHS = \"%s\"\n", - authInfo->hesiodLHS ? authInfo->hesiodLHS : ""); - printf(" hesiod RHS = \"%s\"\n", - authInfo->hesiodRHS ? authInfo->hesiodRHS : ""); - printf("nss_ldap is %s\n", - authInfo->enableLDAP ? "enabled" : "disabled"); - printf(" LDAP+TLS is %s\n", - authInfo->enableLDAPS ? "enabled" : "disabled"); - printf(" LDAP server = \"%s\"\n", - authInfo->ldapServer ? authInfo->ldapServer : ""); - printf(" LDAP base DN = \"%s\"\n", - authInfo->ldapBaseDN ? authInfo->ldapBaseDN : ""); - printf("nss_nis is %s\n", - authInfo->enableNIS ? "enabled" : "disabled"); - printf(" NIS server = \"%s\"\n", - authInfo->nisServer ? authInfo->nisServer : ""); - printf(" NIS domain = \"%s\"\n", - authInfo->nisDomain ? authInfo->nisDomain : ""); -#ifdef LOCAL_POLICIES - printf("local policies are %s\n", - authInfo->enableLocal ? "enabled" : "disabled"); -#endif - printf("pam_unix is always enabled\n"); - printf(" shadow passwords are %s\n", - authInfo->enableShadow ? "enabled" : "disabled"); - printf(" md5 passwords are %s\n", - authInfo->enableMD5 ? "enabled" : "disabled"); - printf("pam_krb5 is %s\n", - authInfo->enableKerberos ? "enabled" : "disabled"); - printf(" krb5 realm = \"%s\"\n", - authInfo->kerberosRealm ?: ""); - printf(" krb5 kdc = \"%s\"\n", - authInfo->kerberosKDC ?: ""); - printf(" krb5 admin server = \"%s\"\n", - authInfo->kerberosAdminServer ?: ""); - printf("pam_ldap is %s\n", - authInfo->enableLDAPAuth ? "enabled" : "disabled"); - printf(" LDAP+TLS is %s\n", - authInfo->enableLDAPS ? "enabled" : "disabled"); - printf(" LDAP server = \"%s\"\n", - authInfo->ldapServer ?: ""); - printf(" LDAP base DN = \"%s\"\n", - authInfo->ldapBaseDN ?: ""); - printf("pam_smb_auth is %s\n", - authInfo->enableSMB ? "enabled" : "disabled"); - printf(" SMB workgroup = \"%s\"\n", - authInfo->smbWorkgroup ?: ""); - printf(" SMB servers = \"%s\"\n", - authInfo->smbServers ?: ""); + authInfoPrint(authInfo); return 0; } else { if (authInfoWriteCache(authInfo) == FALSE) { diff --git a/authconfig.glade b/authconfig.glade new file mode 100644 index 0000000..592ca9c --- /dev/null +++ b/authconfig.glade @@ -0,0 +1,1743 @@ + + + + + Authconfig + authconfig + + src + pixmaps + C + False + True + False + False + False + False + True + glade.strings + + + + GtkWindow + authconfig + Authentication Configuration + GTK_WINDOW_DIALOG + GTK_WIN_POS_NONE + False + False + True + False + + + GtkVBox + vbox3 + 8 + False + 8 + + + GtkNotebook + notebook1 + True + True + True + GTK_POS_TOP + False + 2 + 2 + False + + 0 + True + True + + + + GtkVBox + vbox4 + 4 + False + 4 + + + GtkCheckButton + enablecache + True + + False + True + + 0 + False + False + + + + + GtkFrame + frame14 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table5 + 4 + 2 + 2 + False + 4 + 4 + + + GtkAlignment + alignment1 + 0.5 + 0 + 1 + 0 + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + True + + + + GtkButton + confignis + True + + GTK_RELIEF_NORMAL + + + + + GtkCheckButton + enablenis + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label5 + + GTK_JUSTIFY_LEFT + True + 0 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + GtkFrame + frame15 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table6 + 4 + 2 + 2 + False + 4 + 4 + + + GtkCheckButton + enableldap + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkButton + configldap + True + + GTK_RELIEF_NORMAL + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label6 + + GTK_JUSTIFY_LEFT + True + 0.5 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + GtkFrame + frame16 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table7 + 4 + 2 + 2 + False + 4 + 4 + + + GtkCheckButton + enablehesiod + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkButton + confighesiod + True + + GTK_RELIEF_NORMAL + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label7 + + GTK_JUSTIFY_LEFT + True + 0 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label3 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + GtkVBox + vbox5 + 4 + False + 4 + + + GtkCheckButton + enableshadow + True + + False + True + + 0 + False + False + + + + + GtkCheckButton + enablemd5 + True + + False + True + + 0 + False + False + + + + + GtkFrame + frame20 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table8 + 4 + 2 + 2 + False + 4 + 4 + + + GtkCheckButton + enableldapauth + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkButton + configldapauth + True + + GTK_RELIEF_NORMAL + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label8 + + GTK_JUSTIFY_LEFT + True + 0 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + GtkFrame + frame18 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table9 + 4 + 2 + 2 + False + 4 + 4 + + + GtkCheckButton + enablekerberos + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkButton + configkerberos + True + + GTK_RELIEF_NORMAL + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label9 + + GTK_JUSTIFY_LEFT + True + 0 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + GtkFrame + frame19 + + 0 + GTK_SHADOW_ETCHED_IN + + 0 + False + False + + + + GtkTable + table10 + 4 + 2 + 2 + False + 4 + 4 + + + GtkCheckButton + enablesmb + True + + False + True + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkButton + configsmb + True + + GTK_RELIEF_NORMAL + + 1 + 2 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label10 + + GTK_JUSTIFY_LEFT + True + 0 + 0.5 + 0 + 0 + + 0 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + + + GtkLabel + Notebook:tab + label4 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + + + + + GtkHButtonBox + hbuttonbox2 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + clicked + gtk_main_quit + Sat, 08 Dec 2001 00:32:20 GMT + + + GTK_RELIEF_NORMAL + + + + + + + GtkWindow + nissettings + NIS Settings + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + True + False + + + GtkVBox + vbox6 + 8 + False + 0 + + + GtkTable + table11 + 3 + 2 + False + 8 + 8 + + 8 + True + True + + + + GtkEntry + server + True + True + True + 0 + + + 1 + 2 + 2 + 3 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label12 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + server + + 0 + 1 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label11 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + domain + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + domain + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + GtkHSeparator + hseparator1 + + 0 + True + True + + + + + GtkHButtonBox + hbuttonbox3 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + GTK_RELIEF_NORMAL + + + + + + + GtkWindow + hesiodsettings + Hesiod Settings + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + 350 + False + True + False + + + GtkVBox + vbox7 + 8 + False + 8 + + + GtkTable + table12 + 2 + 2 + False + 8 + 8 + + 0 + True + True + + + + GtkEntry + rhs + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label13 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + rhs + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label14 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + lhs + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + lhs + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + GtkHSeparator + hseparator2 + + 0 + True + True + + + + + GtkHButtonBox + hbuttonbox4 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + GTK_RELIEF_NORMAL + + + + + + + GtkWindow + kerberossettings + Kerberos Settings + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + 350 + False + True + False + + + GtkVBox + vbox8 + 8 + False + 8 + + + GtkTable + table13 + 3 + 2 + False + 8 + 8 + + 8 + True + True + + + + GtkEntry + adminserver + True + True + True + 0 + + + 1 + 2 + 2 + 3 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label15 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + adminserver + + 0 + 1 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label16 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + realm + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + realm + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label17 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + kdc + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + kdc + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + + GtkHSeparator + hseparator3 + + 0 + True + True + + + + + GtkHButtonBox + hbuttonbox5 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + GTK_RELIEF_NORMAL + + + + + + + GtkWindow + smbsettings + SMB Settings + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + 350 + False + True + False + + + GtkVBox + vbox9 + 8 + False + 8 + + + GtkTable + table14 + 2 + 2 + False + 8 + 8 + + 0 + True + True + + + + GtkEntry + domaincontrollers + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label18 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + domaincontrollers + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label19 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + workgroup + + 0 + 1 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + workgroup + True + True + True + 0 + + + 1 + 2 + 0 + 1 + 0 + 0 + True + False + False + False + True + False + + + + + + GtkHSeparator + hseparator4 + + 0 + True + True + + + + + GtkHButtonBox + hbuttonbox6 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + GTK_RELIEF_NORMAL + + + + + + + GtkWindow + ldapsettings + LDAP Settings + GTK_WINDOW_TOPLEVEL + GTK_WIN_POS_NONE + False + False + True + False + + + GtkVBox + vbox10 + 8 + False + 8 + + + GtkTable + table15 + 3 + 2 + False + 8 + 8 + + 8 + True + True + + + + GtkEntry + server + True + True + True + 0 + + + 1 + 2 + 2 + 3 + 0 + 0 + True + False + False + False + True + False + + + + + GtkLabel + label20 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + server + + 0 + 1 + 2 + 3 + 0 + 0 + False + False + False + False + True + False + + + + + GtkLabel + label21 + + GTK_JUSTIFY_CENTER + False + 0.5 + 0.5 + 0 + 0 + basedn + + 0 + 1 + 1 + 2 + 0 + 0 + False + False + False + False + True + False + + + + + GtkEntry + basedn + True + True + True + 0 + + + 1 + 2 + 1 + 2 + 0 + 0 + True + False + False + False + True + False + + + + + GtkCheckButton + tls + True + + False + True + + 0 + 2 + 0 + 1 + 0 + 0 + False + False + False + False + True + False + + + + + + GtkHSeparator + hseparator5 + + 0 + True + True + + + + + GtkHButtonBox + hbuttonbox7 + GTK_BUTTONBOX_END + 30 + 85 + 27 + 7 + 0 + + 0 + False + True + + + + GtkButton + apply + True + True + + GTK_RELIEF_NORMAL + + + + GtkButton + close + True + True + + GTK_RELIEF_NORMAL + + + + + + diff --git a/authconfig.glade2 b/authconfig.glade2 new file mode 100644 index 0000000..46820b7 --- /dev/null +++ b/authconfig.glade2 @@ -0,0 +1,1645 @@ + + + + + + Authentication Configuration + GTK_WINDOW_DIALOG + no + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 8 + yes + + + + yes + yes + yes + GTK_POS_TOP + no + 2 + 2 + no + yes + + + + 4 + no + 4 + yes + + + + yes + _Cache User Information + no + yes + yes + yes + + + 0 + no + no + + + + + + NIS + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + 0.5 + 0 + 1 + 0 + yes + + + + yes + _Configure NIS... + GTK_RELIEF_NORMAL + yes + yes + + + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + fill + + + + + + yes + Enable _NIS Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + NIS is the Name Information Service. It is commonly used on small to medium networks. + GTK_JUSTIFY_LEFT + yes + 0 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + LDAP + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + yes + Enable _LDAP Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + _Configure LDAP... + GTK_RELIEF_NORMAL + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + + + + + + + The Lightweight Directory Access Protocol is a standard way of searching a directory, which can hold arbitrary data in a structured hierarchy. LDAP is increasingly being used in small to large networks. + GTK_JUSTIFY_LEFT + yes + 0.5 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + Hesiod + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + yes + Enable _Hesiod Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + _Configure Hesiod... + GTK_RELIEF_NORMAL + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + + + + + + + Hesiod allows a system administrator to publish user and group information in DNS. It is sometimes used in very large networks. + GTK_JUSTIFY_LEFT + yes + 0 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + + + User Information + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + yes + + + tab + + + + + + 4 + no + 4 + yes + + + + yes + Use _Shadow Passwords + no + yes + yes + yes + + + 0 + no + no + + + + + + yes + Use _MD5 Passwords + no + yes + yes + yes + + + 0 + no + no + + + + + + LDAP + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + yes + Enable _LDAP Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + _Configure LDAP... + GTK_RELIEF_NORMAL + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + + + + + + + The Lightweight Directory Access Protocol is a standard way of searching a directory, which can hold arbitrary data in a structured hierarchy. LDAP is increasingly being used in small to large networks. + GTK_JUSTIFY_LEFT + yes + 0 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + Kerberos + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + yes + Enable _Kerberos Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + _Configure Kerberos... + GTK_RELIEF_NORMAL + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + + + + + + + Kerberos is a trusted third-party authentication system which is commonly used in medium to large networks. + GTK_JUSTIFY_LEFT + yes + 0 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + SMB Authentication + 0 + GTK_SHADOW_ETCHED_IN + yes + + + + 4 + no + 4 + 4 + 2 + 2 + yes + + + + yes + Enable _SMB Support + no + yes + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + _Configure SMB... + GTK_RELIEF_NORMAL + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + fill + + + + + + + SMB authentication verifies user passwords by attempting to connect to a server which uses the SMB (system message block) protocol suite. + GTK_JUSTIFY_LEFT + yes + 0 + 0.5 + 0 + 0 + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + + 0 + no + no + + + + + + + + Authentication + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + yes + + + tab + + + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + + + 0 + no + yes + + + + + + + NIS Settings + GTK_WINDOW_TOPLEVEL + no + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 0 + yes + + + + no + 8 + 8 + 3 + 2 + yes + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 2 + 3 + 0 + 0 + expand|fill + + + + + + + NIS _Server + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + server + yes + yes + + + 0 + 1 + 2 + 3 + 0 + 0 + fill + + + + + + + NIS _Domain + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + domain + yes + yes + + + 0 + 1 + 0 + 1 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + 8 + yes + yes + + + + + + yes + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + 0 + no + yes + + + + + + + Hesiod Settings + GTK_WINDOW_TOPLEVEL + no + 350 + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 8 + yes + + + + no + 8 + 8 + 2 + 2 + yes + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + expand|fill + + + + + + + Hesiod _RHS + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + rhs + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + Hesiod _LHS + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + lhs + yes + yes + + + 0 + 1 + 0 + 1 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + 0 + yes + yes + + + + + + yes + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + 0 + no + yes + + + + + + + Kerberos Settings + GTK_WINDOW_TOPLEVEL + no + 350 + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 8 + yes + + + + no + 8 + 8 + 3 + 2 + yes + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 2 + 3 + 0 + 0 + expand|fill + + + + + + + _Admin Servers + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + adminserver + yes + yes + + + 0 + 1 + 2 + 3 + 0 + 0 + fill + + + + + + + _Realm + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + realm + yes + yes + + + 0 + 1 + 0 + 1 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + + _KDCs + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + kdc + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + expand|fill + + + + + + 8 + yes + yes + + + + + + yes + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + 0 + no + yes + + + + + + + SMB Settings + GTK_WINDOW_TOPLEVEL + no + 350 + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 8 + yes + + + + no + 8 + 8 + 2 + 2 + yes + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + expand|fill + + + + + + + _Domain Controllers + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + domaincontrollers + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + _Workgroup + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + workgroup + yes + yes + + + 0 + 1 + 0 + 1 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 0 + 1 + 0 + 0 + expand|fill + + + + + + 0 + yes + yes + + + + + + yes + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + 0 + no + yes + + + + + + + LDAP Settings + GTK_WINDOW_TOPLEVEL + no + no + yes + no + GTK_WIN_POS_NONE + + + + 8 + no + 8 + yes + + + + no + 8 + 8 + 3 + 2 + yes + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 2 + 3 + 0 + 0 + expand|fill + + + + + + + LDAP _Server + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + server + yes + yes + + + 0 + 1 + 2 + 3 + 0 + 0 + fill + + + + + + + LDAP Search _Base DN + GTK_JUSTIFY_CENTER + no + 0.5 + 0.5 + 0 + 0 + basedn + yes + yes + + + 0 + 1 + 1 + 2 + 0 + 0 + fill + + + + + + + yes + yes + + 0 + yes + yes + + + 1 + 2 + 1 + 2 + 0 + 0 + expand|fill + + + + + + + yes + Use _TLS to encrypt connections + no + yes + yes + yes + + + 0 + 2 + 0 + 1 + 0 + 0 + fill + + + + + + 8 + yes + yes + + + + + + yes + + + 0 + yes + yes + + + + + + GTK_BUTTONBOX_END + 30 + yes + + + + yes + yes + Apply + GTK_RELIEF_NORMAL + yes + + + + + + yes + yes + Close + GTK_RELIEF_NORMAL + yes + + + + + 0 + no + yes + + + + + + diff --git a/authconfig.spec b/authconfig.spec index 4ea107b..b956c21 100644 --- a/authconfig.spec +++ b/authconfig.spec @@ -1,6 +1,6 @@ Summary: Text-mode tool for setting up NIS and shadow passwords. Name: authconfig -Version: 4.1.20 +Version: 4.2 Release: 1 License: GPL ExclusiveOS: Linux @@ -8,7 +8,7 @@ Group: System Environment/Base BuildRoot: %{_tmppath}/%{name}-root Source: %{name}-%{version}.tar.gz Requires: glibc >= 2.1, pam >= 0.73, glib -BuildPrereq: pam-devel >= 0.73, glib-devel, newt-devel +BuildPrereq: pam-devel >= 0.73, glib2-devel, newt-devel %description Authconfig is a terminal mode program for setting up Network @@ -16,6 +16,11 @@ Information Service (NIS) and shadow (more secure) passwords on your system. Authconfig also configures the system to automatically turn on NIS at system startup. +%package gtk +BuildPrereq: gtk2-devel, libglade2-devel +Summary: Graphical tool for setting up NIS and shadow passwords. +Group: System Environment/Base + %prep %setup -q @@ -40,6 +45,11 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man8/* %changelog +* Fri Dec 7 2001 Nalin Dahyabhai 4.2-1 +- port to glib2 +- move post code to the back-end +- add a libglade GUI in a -gtk subpackage + * Tue Nov 27 2001 Nalin Dahyabhai - remove pam_winbind from the list of session modules, because it doesn't provide a session-management interface diff --git a/glade.strings b/glade.strings new file mode 100644 index 0000000..2c3effc --- /dev/null +++ b/glade.strings @@ -0,0 +1,66 @@ +/* + * Translatable strings file generated by Glade. + * Add this file to your project's POTFILES.in. + * DO NOT compile it as part of your application. + */ + +gchar *s = N_("Authentication Configuration"); +gchar *s = N_("_Cache User Information"); +gchar *s = N_("NIS"); +gchar *s = N_("_Configure NIS..."); +gchar *s = N_("Enable _NIS Support"); +gchar *s = N_("NIS is the Name Information Service. It is commonly used on small to medium networks."); +gchar *s = N_("LDAP"); +gchar *s = N_("Enable _LDAP Support"); +gchar *s = N_("_Configure LDAP..."); +gchar *s = N_("The Lightweight Directory Access Protocol is a standard way of searching a directory, which can hold arbitrary data in a structured hierarchy. LDAP is increasingly being used in small to large networks."); +gchar *s = N_("Hesiod"); +gchar *s = N_("Enable _Hesiod Support"); +gchar *s = N_("_Configure Hesiod..."); +gchar *s = N_("Hesiod allows a system administrator to publish user and group information in DNS. It is sometimes used in very large networks."); +gchar *s = N_("User Information"); +gchar *s = N_("Use _Shadow Passwords"); +gchar *s = N_("Use _MD5 Passwords"); +gchar *s = N_("LDAP"); +gchar *s = N_("Enable _LDAP Support"); +gchar *s = N_("_Configure LDAP..."); +gchar *s = N_("The Lightweight Directory Access Protocol is a standard way of searching a directory, which can hold arbitrary data in a structured hierarchy. LDAP is increasingly being used in small to large networks."); +gchar *s = N_("Kerberos"); +gchar *s = N_("Enable _Kerberos Support"); +gchar *s = N_("_Configure Kerberos..."); +gchar *s = N_("Kerberos is a trusted third-party authentication system which is commonly used in medium to large networks."); +gchar *s = N_("SMB Authentication"); +gchar *s = N_("Enable _SMB Support"); +gchar *s = N_("_Configure SMB..."); +gchar *s = N_("SMB authentication verifies user passwords by attempting to connect to a server which uses the SMB (system message block) protocol suite."); +gchar *s = N_("Authentication"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); +gchar *s = N_("NIS Settings"); +gchar *s = N_("NIS _Server"); +gchar *s = N_("_Broadcast to find an NIS server (this is not recommended)."); +gchar *s = N_("NIS _Domain"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); +gchar *s = N_("Hesiod Settings"); +gchar *s = N_("Hesiod _RHS"); +gchar *s = N_("Hesiod _LHS"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); +gchar *s = N_("Kerberos Settings"); +gchar *s = N_("_Admin Servers"); +gchar *s = N_("_Realm"); +gchar *s = N_("_KDCs"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); +gchar *s = N_("SMB Settings"); +gchar *s = N_("_Domain Controllers"); +gchar *s = N_("_Workgroup"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); +gchar *s = N_("LDAP Settings"); +gchar *s = N_("LDAP _Server"); +gchar *s = N_("LDAP Search _Base DN"); +gchar *s = N_("Use _TLS to encrypt connections"); +gchar *s = N_("gtk-apply"); +gchar *s = N_("gtk-close"); diff --git a/po/Makefile b/po/Makefile index bf8d82a..dcd3889 100644 --- a/po/Makefile +++ b/po/Makefile @@ -10,7 +10,7 @@ NLSPACKAGE = authconfig CATALOGS = $(shell ls *.po | sed 's/po/mo/') -POTFILES = ../authconfig.c ../localpol.h +POTFILES = ../authconfig.c ../authinfo.h ../localpol.h ../glade.strings all: $(NLSPACKAGE).pot $(CATALOGS) diff --git a/po/authconfig.pot b/po/authconfig.pot index c20e28e..3347813 100644 --- a/po/authconfig.pot +++ b/po/authconfig.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2001-12-07 16:29-0500\n" +"POT-Creation-Date: 2001-12-10 15:22-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -121,7 +121,12 @@ msgstr "" msgid "Use SMB Authentication" msgstr "" -#: ../authconfig.c:632 +#. +#. * Translatable strings file generated by Glade. +#. * Add this file to your project's POTFILES.in. +#. * DO NOT compile it as part of your application. +#. +#: ../authconfig.c:632 ../glade.strings:7 msgid "Authentication Configuration" msgstr "" @@ -344,18 +349,218 @@ msgstr "" msgid "dialog was cancelled\n" msgstr "" -#: ../authconfig.c:1121 +#: ../authconfig.c:1069 #, c-format msgid "%s: critical error recording caching setting" msgstr "" -#: ../authconfig.c:1127 ../authconfig.c:1133 ../authconfig.c:1139 -#: ../authconfig.c:1145 ../authconfig.c:1151 ../authconfig.c:1156 -#: ../authconfig.c:1161 ../authconfig.c:1167 +#: ../authconfig.c:1075 ../authconfig.c:1081 ../authconfig.c:1087 +#: ../authconfig.c:1093 ../authconfig.c:1099 ../authconfig.c:1104 +#: ../authconfig.c:1109 ../authconfig.c:1115 #, c-format msgid "%s: critical error writing %s/%s" msgstr "" +#: ../authinfo.h:47 +#, c-format +msgid "" +"The %s file was not found, but it is required for %s support to work " +"properly. Install the %s package, which provides this file." +msgstr "" + #: ../localpol.h:9 msgid "Use Local Policies" msgstr "" + +#: ../glade.strings:8 +msgid "_Cache User Information" +msgstr "" + +#: ../glade.strings:9 +msgid "NIS" +msgstr "" + +#: ../glade.strings:10 +msgid "_Configure NIS..." +msgstr "" + +#: ../glade.strings:11 +msgid "Enable _NIS Support" +msgstr "" + +#: ../glade.strings:12 +msgid "" +"NIS is the Name Information Service. It is commonly used on small to medium " +"networks." +msgstr "" + +#: ../glade.strings:13 ../glade.strings:24 +msgid "LDAP" +msgstr "" + +#: ../glade.strings:14 ../glade.strings:25 +msgid "Enable _LDAP Support" +msgstr "" + +#: ../glade.strings:15 ../glade.strings:26 +msgid "_Configure LDAP..." +msgstr "" + +#: ../glade.strings:16 ../glade.strings:27 +msgid "" +"The Lightweight Directory Access Protocol is a standard way of searching a " +"directory, which can hold arbitrary data in a structured hierarchy. LDAP is " +"increasingly being used in small to large networks." +msgstr "" + +#: ../glade.strings:17 +msgid "Hesiod" +msgstr "" + +#: ../glade.strings:18 +msgid "Enable _Hesiod Support" +msgstr "" + +#: ../glade.strings:19 +msgid "_Configure Hesiod..." +msgstr "" + +#: ../glade.strings:20 +msgid "" +"Hesiod allows a system administrator to publish user and group information " +"in DNS. It is sometimes used in very large networks." +msgstr "" + +#: ../glade.strings:21 +msgid "User Information" +msgstr "" + +#: ../glade.strings:22 +msgid "Use _Shadow Passwords" +msgstr "" + +#: ../glade.strings:23 +msgid "Use _MD5 Passwords" +msgstr "" + +#: ../glade.strings:28 +msgid "Kerberos" +msgstr "" + +#: ../glade.strings:29 +msgid "Enable _Kerberos Support" +msgstr "" + +#: ../glade.strings:30 +msgid "_Configure Kerberos..." +msgstr "" + +#: ../glade.strings:31 +msgid "" +"Kerberos is a trusted third-party authentication system which is commonly " +"used in medium to large networks." +msgstr "" + +#: ../glade.strings:32 +msgid "SMB Authentication" +msgstr "" + +#: ../glade.strings:33 +msgid "Enable _SMB Support" +msgstr "" + +#: ../glade.strings:34 +msgid "_Configure SMB..." +msgstr "" + +#: ../glade.strings:35 +msgid "" +"SMB authentication verifies user passwords by attempting to connect to a " +"server which uses the SMB (system message block) protocol suite." +msgstr "" + +#: ../glade.strings:36 +msgid "Authentication" +msgstr "" + +#: ../glade.strings:37 ../glade.strings:43 ../glade.strings:48 +#: ../glade.strings:54 ../glade.strings:59 ../glade.strings:65 +msgid "gtk-apply" +msgstr "" + +#: ../glade.strings:38 ../glade.strings:44 ../glade.strings:49 +#: ../glade.strings:55 ../glade.strings:60 ../glade.strings:66 +msgid "gtk-close" +msgstr "" + +#: ../glade.strings:39 +msgid "NIS Settings" +msgstr "" + +#: ../glade.strings:40 +msgid "NIS _Server" +msgstr "" + +#: ../glade.strings:41 +msgid "_Broadcast to find an NIS server (this is not recommended)." +msgstr "" + +#: ../glade.strings:42 +msgid "NIS _Domain" +msgstr "" + +#: ../glade.strings:45 +msgid "Hesiod Settings" +msgstr "" + +#: ../glade.strings:46 +msgid "Hesiod _RHS" +msgstr "" + +#: ../glade.strings:47 +msgid "Hesiod _LHS" +msgstr "" + +#: ../glade.strings:50 +msgid "Kerberos Settings" +msgstr "" + +#: ../glade.strings:51 +msgid "_Admin Servers" +msgstr "" + +#: ../glade.strings:52 +msgid "_Realm" +msgstr "" + +#: ../glade.strings:53 +msgid "_KDCs" +msgstr "" + +#: ../glade.strings:56 +msgid "SMB Settings" +msgstr "" + +#: ../glade.strings:57 +msgid "_Domain Controllers" +msgstr "" + +#: ../glade.strings:58 +msgid "_Workgroup" +msgstr "" + +#: ../glade.strings:61 +msgid "LDAP Settings" +msgstr "" + +#: ../glade.strings:62 +msgid "LDAP _Server" +msgstr "" + +#: ../glade.strings:63 +msgid "LDAP Search _Base DN" +msgstr "" + +#: ../glade.strings:64 +msgid "Use _TLS to encrypt connections" +msgstr ""