Changeset 1693 for trunk/server/common/oursrc
- Timestamp:
- Oct 23, 2010, 8:07:08 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/fc13-dev (added) merged: 1613-1638,1644-1647,1649-1650,1653,1658-1666,1668-1669,1672-1678,1680-1681
- Property svn:mergeinfo changed
-
trunk/server/common/oursrc/accountadm
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/accountadm/Makefile.in
r1376 r1693 11 11 12 12 admof: admof.c 13 $(CC) $(CPPFLAGS) $(CFLAGS) $< -L/usr/lib/afs -L/usr/lib64/afs -lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil -lcom_err -lresolv -lkrb5 -ldes - lkrb4 -o $@13 $(CC) $(CPPFLAGS) $(CFLAGS) $< -L/usr/lib/afs -L/usr/lib64/afs -lprot -lauth -lrxkad -lubik -laudit -lsys -lrx -llwp -lsys -lafsutil -lcom_err -lresolv -lkrb5 -ldes -o $@ 14 14 15 15 install: -
trunk/server/common/oursrc/accountadm/admof.c
r1601 r1693 30 30 #include <afs/afsutil.h> 31 31 #include <krb5.h> 32 #include <kerberosIV/krb.h>33 32 #include <stdbool.h> 34 33 #include <syslog.h> 34 35 #define ANAME_SZ 40 36 #define REALM_SZ 40 37 #define INST_SZ 40 38 #define MAX_K_NAME_SZ (ANAME_SZ + INST_SZ + REALM_SZ + 2) 35 39 36 40 extern int pioctl(char *, afs_int32, struct ViceIoctl *, afs_int32); … … 117 121 if (krb5_524_conv_principal(context, principal, pname, pinst, prealm) != 0) 118 122 die("internal error: krb5_524_conv_principal failed\n"); 119 if (kname_unparse(user, pname, pinst, 120 strcmp(prealm, realm_list[0]) == 0 ? NULL : prealm) != 0) 121 die("internal error: kname_unparse failed\n"); 123 124 krb5_data realm = *krb5_princ_realm(context, principal); 125 if (realm.length > REALM_SZ - 1) 126 realm.length = REALM_SZ - 1; 127 if (strlen(realm_list[0]) == realm.length && 128 memcmp(realm.data, realm_list[0], realm.length) == 0) 129 snprintf(user, MAX_K_NAME_SZ, "%s%s%s", 130 pname, pinst[0] ? "." : "", pinst); 131 else 132 snprintf(user, MAX_K_NAME_SZ, "%s%s%s@%.*s", 133 pname, pinst[0] ? "." : "", pinst, realm.length, realm.data); 122 134 123 135 krb5_free_principal(context, principal); -
trunk/server/common/oursrc/athrun
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/execsys
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/execsys/execsys-binfmt
- Property svn:mergeinfo changed
/branches/fc13-dev/server/common/oursrc/execsys/execsys-binfmt (added) merged: 1673-1675
- Property svn:mergeinfo changed
-
trunk/server/common/oursrc/httpdmods
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/logview
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/php_scripts/php_scripts-config.m4
- Property svn:mergeinfo changed
/branches/fc13-dev/server/common/oursrc/php_scripts/php_scripts-config.m4 (added) merged: 1673-1675
- Property svn:mergeinfo changed
-
trunk/server/common/oursrc/tokensys
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
-
trunk/server/common/oursrc/whoisd
-
Property
svn:ignore
set to
configure
autom4te.cache
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.