From d398755f226953c33fae6e05ef0276a9bd2f9df7 Mon Sep 17 00:00:00 2001 From: nalin Date: Jun 20 2000 15:19:26 +0000 Subject: turn on portmap with ypbind --- diff --git a/authconfig.c b/authconfig.c index 7f9310d..bfc6bc9 100644 --- a/authconfig.c +++ b/authconfig.c @@ -72,13 +72,18 @@ gboolean toggleNisService(gboolean enableNis, char *nisDomain, gboolean nostart) domainStr = g_strdup_printf("/bin/domainname %s", nisDomain); system(domainStr); g_free(domainStr); - if (!nostart) { - system("/sbin/service ypbind restart"); - } if(stat(PATH_YPBIND, &st) == 0) { system("/sbin/chkconfig --add ypbind"); system("/sbin/chkconfig --level 345 ypbind on"); } + if(stat(PATH_PORTMAP, &st) == 0) { + system("/sbin/chkconfig --add portmap"); + system("/sbin/chkconfig --level 345 portmap on"); + } + if (!nostart) { + system("/sbin/service portmap restart"); + system("/sbin/service ypbind restart"); + } } else { system("/bin/domainname \"(none)\""); if (!nostart) { diff --git a/authconfig.spec b/authconfig.spec index 68c772e..9e0dce0 100644 --- a/authconfig.spec +++ b/authconfig.spec @@ -36,6 +36,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Jun 20 2000 Nalin Dahyabhai - tweak chkconfig magic for ypbind to work better +- turn on portmap when ypbind is enabled * Mon Jun 19 2000 Nalin Dahyabhai - only do chkconfig magic on ypbind if the ypbind init script exists diff --git a/authinfo.h b/authinfo.h index 305d3fc..f852586 100644 --- a/authinfo.h +++ b/authinfo.h @@ -13,6 +13,7 @@ #define AUTH_MODULE_DIR "/lib/security" #define NSS_DEFAULT "files nisplus nis" +#define PATH_PORTMAP "/sbin/portmap" #define PATH_YPBIND "/sbin/ypbind" #define PATH_LIBNSS_LDAP "/lib/libnss_ldap.so.2" #define PATH_LIBNSS_NIS "/lib/libnss_nis.so.2" diff --git a/po/authconfig.pot b/po/authconfig.pot index e6c41e1..b6dd066 100644 --- a/po/authconfig.pot +++ b/po/authconfig.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-06-20 10:39-0400\n" +"POT-Creation-Date: 2000-06-20 11:20-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -14,115 +14,115 @@ msgstr "" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: ENCODING\n" -#: ../authconfig.c:136 +#: ../authconfig.c:141 #, 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 "" -#: ../authconfig.c:140 +#: ../authconfig.c:145 msgid "Warning" msgstr "" -#: ../authconfig.c:140 ../authconfig.c:501 ../authconfig.c:506 +#: ../authconfig.c:145 ../authconfig.c:506 ../authconfig.c:511 msgid "Ok" msgstr "" -#: ../authconfig.c:150 ../authconfig.c:224 +#: ../authconfig.c:155 ../authconfig.c:229 msgid " Domain:" msgstr "" -#: ../authconfig.c:151 ../authconfig.c:197 +#: ../authconfig.c:156 ../authconfig.c:202 msgid " Server:" msgstr "" -#: ../authconfig.c:171 +#: ../authconfig.c:176 msgid " LHS:" msgstr "" -#: ../authconfig.c:172 +#: ../authconfig.c:177 msgid " RHS:" msgstr "" -#: ../authconfig.c:198 +#: ../authconfig.c:203 msgid " Base DN:" msgstr "" -#: ../authconfig.c:241 +#: ../authconfig.c:246 msgid " Realm:" msgstr "" -#: ../authconfig.c:242 +#: ../authconfig.c:247 msgid " KDC:" msgstr "" -#: ../authconfig.c:243 +#: ../authconfig.c:248 msgid " Admin Server:" msgstr "" #. Create the window and a form to put into it. -#: ../authconfig.c:283 +#: ../authconfig.c:288 msgid "User Information Configuration" msgstr "" #. NSS modules: NIS. -#: ../authconfig.c:287 +#: ../authconfig.c:292 msgid "Use NIS" msgstr "" -#: ../authconfig.c:310 +#: ../authconfig.c:315 msgid "Use LDAP" msgstr "" -#: ../authconfig.c:329 +#: ../authconfig.c:334 msgid "Use WinBind" msgstr "" -#: ../authconfig.c:343 +#: ../authconfig.c:348 msgid "Use Hesiod" msgstr "" #. Create the buttons. -#: ../authconfig.c:364 +#: ../authconfig.c:369 msgid "Next" msgstr "" -#: ../authconfig.c:365 ../authconfig.c:502 ../authconfig.c:507 +#: ../authconfig.c:370 ../authconfig.c:507 ../authconfig.c:512 msgid "Back" msgstr "" -#: ../authconfig.c:365 ../authconfig.c:503 +#: ../authconfig.c:370 ../authconfig.c:508 msgid "Cancel" msgstr "" #. Create the window and a form to put into it. -#: ../authconfig.c:425 +#: ../authconfig.c:430 msgid "Authentication Configuration" msgstr "" #. PAM setup. -#: ../authconfig.c:429 +#: ../authconfig.c:434 msgid "Use Shadow Passwords" msgstr "" -#: ../authconfig.c:433 +#: ../authconfig.c:438 msgid "Use MD5 Passwords" msgstr "" -#: ../authconfig.c:438 +#: ../authconfig.c:443 msgid "Use LDAP Authentication" msgstr "" -#: ../authconfig.c:459 +#: ../authconfig.c:464 msgid "Use WinBind Authentication" msgstr "" -#: ../authconfig.c:474 +#: ../authconfig.c:479 msgid "Use Kerberos 5" msgstr "" -#: ../authconfig.c:595 +#: ../authconfig.c:600 #, c-format msgid "" "Usage: %s [options]\n" @@ -149,107 +149,107 @@ msgid "" " --help show this screen\n" msgstr "" -#: ../authconfig.c:709 +#: ../authconfig.c:714 #, c-format msgid "%s: bad argument %s: %s\n" msgstr "" -#: ../authconfig.c:716 +#: ../authconfig.c:721 #, c-format msgid "%s: unexpected argument\n" msgstr "" -#: ../authconfig.c:728 +#: ../authconfig.c:733 #, c-format msgid "%s: can only be run as root\n" msgstr "" -#: ../authconfig.c:739 +#: ../authconfig.c:744 #, c-format msgid "%s: critical error reading %s/hesiod.conf" msgstr "" -#: ../authconfig.c:746 +#: ../authconfig.c:751 #, c-format msgid "%s: critical error reading %s/krb5.conf" msgstr "" -#: ../authconfig.c:753 +#: ../authconfig.c:758 #, c-format msgid "%s: critical error reading %s/ldap.conf" msgstr "" -#: ../authconfig.c:761 +#: ../authconfig.c:766 #, c-format msgid "%s: critical error reading %s/smb.conf" msgstr "" -#: ../authconfig.c:769 +#: ../authconfig.c:774 #, c-format msgid "%s: critical error reading %s/yp.conf" msgstr "" -#: ../authconfig.c:776 +#: ../authconfig.c:781 #, c-format msgid "%s: critical error reading %s/nsswitch.conf" msgstr "" -#: ../authconfig.c:783 +#: ../authconfig.c:788 #, c-format msgid "%s: critical error reading %s/sysconfig/network" msgstr "" -#: ../authconfig.c:790 +#: ../authconfig.c:795 #, c-format msgid "%s: critical error reading %s/pam.d/%s" msgstr "" -#: ../authconfig.c:843 +#: ../authconfig.c:848 msgid "" " / between elements | selects | next " "screen" msgstr "" -#: ../authconfig.c:851 +#: ../authconfig.c:856 msgid "dialog was cancelled\n" msgstr "" -#: ../authconfig.c:915 +#: ../authconfig.c:920 #, c-format msgid "%s: critical error writing %s/hesiod.conf" msgstr "" -#: ../authconfig.c:920 +#: ../authconfig.c:925 #, c-format msgid "%s: critical error writing %s/krb5.conf" msgstr "" -#: ../authconfig.c:925 +#: ../authconfig.c:930 #, c-format msgid "%s: critical error writing %s/ldap.conf" msgstr "" -#: ../authconfig.c:930 +#: ../authconfig.c:935 #, c-format msgid "%s: critical error writing %s/yp.conf" msgstr "" -#: ../authconfig.c:936 +#: ../authconfig.c:941 #, c-format msgid "%s: critical error writing %s/smb.conf" msgstr "" -#: ../authconfig.c:942 +#: ../authconfig.c:947 #, c-format msgid "%s: critical error writing %s/nsswitch.conf" msgstr "" -#: ../authconfig.c:946 +#: ../authconfig.c:951 #, c-format msgid "%s: critical error writing %s/sysconfig/network" msgstr "" -#: ../authconfig.c:951 +#: ../authconfig.c:956 #, c-format msgid "%s: critical error writing %s/pam.d/%s" msgstr ""