+Tue Jul 30 19:15:55 1996 Sam Hartman <hartmans@tertius.mit.edu>
+
+ * Makefile.in (check-unix): Comment out an_2_ln tests that use
+ database.
+
+ * an_to_ln.c (krb5_aname_to_localname): Make the db lookup verison
+ of aname_2_localname optional.
+
Sun Jul 28 22:39:12 1996 Tom Yu <tlyu@mit.edu>
* an_to_ln.c (aname_do_match): #elif HAVE_REGEXP_H should have
echo ' default_realm = r' >> ./t_an.conf
echo '[realms]' >> ./t_an.conf
echo 'r = {' >> ./t_an.conf
- if test -r ../../../admin/aname/kdb5_anadd ; then \
- $(KRB5_RUN_ENV) ../../../admin/aname/kdb5_anadd -a -n ./t_an p/i/i/i@r piii; \
- ../../../admin/aname/kdb5_anadd -a -n ./t_an p/a/b/c@r pabc; \
- echo 'auth_to_local = DB:./t_an' >> ./t_an.conf; \
- fi
+# if test -r ../../../admin/aname/kdb5_anadd ; then \
+# $(KRB5_RUN_ENV) ../../../admin/aname/kdb5_anadd -a -n ./t_an p/i/i/i@r piii; \
+# ../../../admin/aname/kdb5_anadd -a -n ./t_an p/a/b/c@r pabc; \
+# echo 'auth_to_local = DB:./t_an' >> ./t_an.conf; \
+# fi
echo 'auth_to_local = RULE:[3:$$1$$3$$2](rule.*)s/rule//g' \
>> ./t_an.conf
echo 'auth_to_local = DEFAULT' >> ./t_an.conf
echo '}' >> ./t_an.conf
- if test -r ../../../admin/aname/kdb5_anadd ; then \
- KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
- $(KRB5_RUN_ENV) ./t_an_to_ln p/i/i/i@r p/a/b/c@r; \
- fi
+# if test -r ../../../admin/aname/kdb5_anadd ; then \
+# KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
+# $(KRB5_RUN_ENV) ./t_an_to_ln p/i/i/i@r p/a/b/c@r; \
+# fi
KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
$(KRB5_RUN_ENV) ./t_an_to_ln rul/helpme/e@r ru/123/le@r
KRB5_CONFIG=./t_an.conf ; export KRB5_CONFIG ; \
#ifndef min
#define min(a,b) ((a>b) ? b : a)
#endif /* min */
-
+#ifdef ANAME_DB
#ifdef BERK_DB_DBM
/*
* Use Berkeley Hashed Database code.
#define KDBM_CLOSE(db) dbm_close(db)
#define KDBM_FETCH(db, key) dbm_fetch(db, key)
#endif /* BERK_DB_DBM */
+#endif /*ANAME_DB*/
/*
* Find the portion of the flattened principal name that we use for mapping.
return(mname);
}
+#ifdef ANAME_DB
/*
* Implementation: This version uses a DBM database, indexed by aname,
* to generate a lname.
return KRB5_LNAME_NOTRANS;
#endif /* BERK_DB_DBM && !_MSDOS && !_WIN32 && !MACINTOSH */
}
+#endif /*ANAME_DB*/
#ifdef AN_TO_LN_RULES
/*
*argp = '\0';
argp++;
}
+#ifdef ANAME_DB
if (!strcmp(typep, "DB") && argp) {
kret = db_an_to_ln(context,
argp,
break;
}
else
+#endif
#ifdef AN_TO_LN_RULES
if (!strcmp(typep, "RULE") && argp) {
kret = rule_an_to_ln(context,