From 267ab86935896e89b3fe38431842c1eff7ad576c Mon Sep 17 00:00:00 2001 From: tmraz Date: May 18 2006 14:37:33 +0000 Subject: - updated summary, converted changelog to UTF-8 - only real scripts install as scripts - the ldap uri read/save needed adjustment --- diff --git a/Makefile.am b/Makefile.am index 6e2389c..b9fa7f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,8 +12,8 @@ applnkdir = $(sysconfdir)/X11/applnk/System startheredir = $(sysconfdir)/X11/sysconfig sbin_SCRIPTS = cacertdir_rehash -pkgdata_SCRIPTS = authconfig-gtk.py authconfig.py authinfo.py shvfile.py dnsclient.py -pkgdata_DATA = authconfig.glade +pkgdata_SCRIPTS = authconfig-gtk.py authconfig.py +pkgdata_DATA = authconfig.glade authinfo.py shvfile.py dnsclient.py pythonsite_LTLIBRARIES = acutilmodule.la pixmapdir = $(datadir)/pixmaps pixmap_DATA = user_auth.png diff --git a/authconfig.spec.in b/authconfig.spec.in index 1330056..0571b4c 100644 --- a/authconfig.spec.in +++ b/authconfig.spec.in @@ -1,4 +1,4 @@ -Summary: Text-mode tool for setting up NIS and shadow passwords. +Summary: Command line tool for setting up authentication from network services Name: authconfig Version: @PACKAGE_VERSION@ # Don't change release in elvis CVS, up version after merging all patches @@ -12,19 +12,20 @@ Source: %{name}-%{version}.tar.bz2 Requires: rhpl, newt, pam >= 0.77-56, usermode Requires: python >= %(%{__python} -c "import sys; print sys.version[:3]") Conflicts: pam_krb5 < 1.49, samba-common < 3.0, samba-client < 3.0 -BuildPrereq: glib2-devel, python, python-devel -BuildPrereq: desktop-file-utils, intltool, gettext, perl-XML-Parser +BuildRequires: glib2-devel, python, python-devel +BuildRequires: desktop-file-utils, intltool, gettext, perl-XML-Parser %description -Authconfig is a terminal mode program which can configure a workstation +Authconfig is a command line utility which can configure a workstation to use shadow (more secure) passwords. Authconfig can also configure a system to be a client for certain networked user information and authentication schemes. %package gtk -Summary: Graphical tool for setting up NIS and shadow passwords. +Summary: Graphical tool for setting up authentication from network services Group: System Environment/Base Requires: %{name} = %{version}-%{release}, pygtk2-libglade >= 2.4.0, rhpl +Requires: usermode-gtk %description gtk Authconfig-gtk is a GUI program which can configure a workstation @@ -97,6 +98,7 @@ rm -rf $RPM_BUILD_ROOT * Thu May 18 2006 Tomas Mraz - 5.2.5-1 - write ldap servers as URIs and not HOSTs (#191842) - fix a typo in --test output +- updated summary, converted changelog to UTF-8 * Fri May 12 2006 Tomas Mraz - 5.2.4-1 - added crond to the services restarted after firstboot (#187334) @@ -359,7 +361,7 @@ rm -rf $RPM_BUILD_ROOT * Tue Sep 3 2002 Nalin Dahyabhai 4.2.11-3 - update translations -* Thu Aug 29 2002 Trond Eivind Glomsr�d 4.2.12-2 +* Thu Aug 29 2002 Trond Eivind Glomsrød 4.2.12-2 - Update translations * Fri Aug 23 2002 Nalin Dahyabhai 4.2.11-1 diff --git a/authinfo.py b/authinfo.py index 00aeb8a..e742e62 100644 --- a/authinfo.py +++ b/authinfo.py @@ -779,10 +779,12 @@ class AuthInfo: ret = "" for item in l: if item: + if ret: + ret += "," if "://" in item: - ret += "," + item + ret += item else: - ret += ",ldap://" + item + "/" + ret += "ldap://" + item + "/" return ret # Read LDAP setup from /etc/ldap.conf. @@ -1577,8 +1579,8 @@ class AuthInfo: # If we haven't encountered either of the config lines yet... if not wroteserver and self.ldapServer: - output += host + " " - output += " ".join(self.ldapServer.split(",")) + output += uri + " " + output += " ".join(self.ldapHostsToURIs(self.ldapServer).split(",")) output += "\n" if not wrotebasedn and self.ldapBaseDN: output += base + " "