[OpenAFS-devel] kpasswd (S/390)
Carsten Jacobi
carsten@ccac.rwth-aachen.de
Mon, 21 May 2001 16:37:11 +0200
--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Ok, I found one more spot that has to be patched so that
the AFS password can be changed with admin- as with
client tools (the patch is attached, this one applies to
admin_tools.c and authclient.c).
By the way please add the entry for "/usr/bin/kpasswd" to
the general SPEC-File! Everybody who used AFS for years is
used to change his AFS password with this program. And since
kpasswd works fine now also on Linux-S/390 I wonder why it
should be left out of the RPM.
Carsten Jacobi
--YiEDa0DAkWCtVeE4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="openafs-1.0.4-s390_SetPassword.patch"
--- src/kauth/admin_tools.c.orig Mon Apr 23 08:11:32 2001
+++ src/kauth/admin_tools.c Tue May 15 14:13:58 2001
@@ -768,7 +768,11 @@
if (as->parms[3].items)
sscanf (as->parms[3].items->data, "%d", &kvno);
+#ifdef AFS_S390_LINUX20_ENV
+ code = ubik_Call (KAM_SetPassword, conn, 0, name, instance, kvno, 0, key);
+#else
code = ubik_Call (KAM_SetPassword, conn, 0, name, instance, kvno, key);
+#endif
if (code) com_err (whoami, code,
"so can't set password for %s.%s", name, instance);
return code;
--- src/kauth/authclient.c.orig Wed May 16 16:31:36 2001
+++ src/kauth/authclient.c Wed May 16 17:13:15 2001
@@ -788,8 +788,13 @@
afs_int32 code;
LOCK_GLOBAL_MUTEX
+#ifdef AFS_S390_LINUX20_ENV
+ code = ubik_Call_New (KAM_SetPassword, conn, 0, name,
+ instance, 0, 0, *newkey);
+#else
code = ubik_Call_New (KAM_SetPassword, conn, 0, name,
instance, 0, *newkey);
+#endif
UNLOCK_GLOBAL_MUTEX
return code;
}
--YiEDa0DAkWCtVeE4--