summaryrefslogtreecommitdiffstats
path: root/src/kadmin
Commit message (Collapse)AuthorAgeFilesLines
* * kdb5_util.c (main): Do try using com_err in the case that krb5_init_contextKen Raeburn1999-07-072-2/+6
| | | | | | | fails, instead of fprintf of the error number. (cf krb5-bugs db #499, 13-Nov-1997) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11546 dc483132-0cff-0310-8789-dd5450dbe970
* Fix how we specify the OID so it's in a format gss_str_to_oid likesTheodore Tso1999-05-122-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11437 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Remove include of gssapi_krb5.h - no longer neededEzra Peisach1999-05-112-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11434 dc483132-0cff-0310-8789-dd5450dbe970
* ovsec_kadmd.c: Remove dependency on gssapi_krb5.h by usingTheodore Tso1999-05-072-37/+108
| | | | | | | | | gss_str_to_oid() to get the necessary oid for the krb5_name name type. Also added #include files to get prototypes and fixed some gcc -Wall nits. Fixed calls to krb5_klog_close() to pass the krb5_context as an argument. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11427 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c (log_badverf): Actually make a real lookup tableTom Yu1999-03-022-17/+51
| | | | | | | | for procedure numbers. Also, if we don't find the procedure number, just log the number rather than falling off the end of an array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11234 dc483132-0cff-0310-8789-dd5450dbe970
* netbsd1.def (UTMP_FILE, WTMP_FILE): Update filenames to comply withTheodore Tso1999-01-222-2/+9
| | | | | | | netbsd system. (Not actually used by our configuration system, but I'll update the file.) Submitted by ghudson, [krb5-admin/522] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11117 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (CFLAGS): PW_CHECK functionality now in DEFSTom Yu1999-01-122-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11106 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Define NDBM_PW_CHECK if enable_athena is set toTom Yu1999-01-122-0/+11
| | | | | | deal with v4kadmind kludge. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11105 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Set the myfulldir and mydir variables (which are relativeTheodore Tso1998-12-0528-0/+98
| | | | | | to buildtop and thisconfigdir, respectively.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11082 dc483132-0cff-0310-8789-dd5450dbe970
* * dump.c: Fix up to work with new crypto APITom Yu1998-11-032-26/+23
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11010 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-3017-223/+453
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for changing the master key for a database as part ofTheodore Tso1998-09-302-26/+167
| | | | | | creating a dump of the database. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10952 dc483132-0cff-0310-8789-dd5450dbe970
* ovsec_kadmd.c (main): Cast gss_nt_krb5_name to gss_OIDGeoffrey King1998-07-222-3/+8
| | | | | | to avoid compiler warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10714 dc483132-0cff-0310-8789-dd5450dbe970
* Call krb5_klog_reopen in kadm_svc_run upon receiving a SIGHUP. UseGeoffrey King1998-07-212-25/+81
| | | | | | | | | | | sigaction instead of signal if POSIX_SIGNALS is defined. All of the calls to signal and sigaction are now in a separate function setup_signal_handlers, as the kdc code does. Also, since reset_db no longer does anything, change the name of signal_request_reset to the more descriptive signal_request_hup, and request_reset_db to request_hup (paralleling the nomenclature in the kdc code). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10712 dc483132-0cff-0310-8789-dd5450dbe970
* * schpw.c (process_chpw_request): Cast to krb5_octet * instead ofEzra Peisach1998-07-202-3/+8
| | | | | | | | char * for krb5_address.contents type. This is a char * to unsigned char * warning fix. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10711 dc483132-0cff-0310-8789-dd5450dbe970
* * acl_files.c: Include stdlib.h if presentEzra Peisach1998-07-202-0/+7
| | | | | | (for malloc declarations) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10710 dc483132-0cff-0310-8789-dd5450dbe970
* * tcl_kadm5.c (parse_tl_data): Change cast from char * toEzra Peisach1998-07-163-5/+15
| | | | | | | | | | | krb5_octet *. (tcl_kadm5_free_principal_ent, tcl_kadm5_free_policy_ent): Add cast to value returned by Tcl_GetHashValue. * tcl_ovsec_kadm.c (tcl_ovsec_kadm_free_principal_ent): Cast return of Tcl_GetHashValue. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10650 dc483132-0cff-0310-8789-dd5450dbe970
* Preliminary fixes for AIX4.3:Sam Hartman1998-07-122-1/+2
| | | | | | | | | | | * Fix static libs on platforms using .a for shared libs * Fix utmp handling for non-hpux platforms with ut_exit different from utmpx. * Include librarymacros in ss configure.in * Remove declarations of h_errno git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10632 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_server.c (kadm_ser_cpw): Re-enable "old-style" passwordTom Yu1998-07-102-26/+46
| | | | | | | | changing. Yes, it's potentially a problem due to lack of quality checking, but we'll live with that because we can use key-hash-based checks too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10630 dc483132-0cff-0310-8789-dd5450dbe970
* kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal insteadTheodore Tso1998-07-082-6/+9
| | | | | | of krb5_build_principal to create the changepw sprinc principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10625 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (build_pwfile): Add rule to build the build_pwfile programTheodore Tso1998-07-035-50/+200
| | | | | | | | | | | | kadm_server.c (kadm_ser_cpw): Put the call to the kadm_approve_pw in the common code, so it's executed even if KADM5 is defined. Add appropriate syslogs to the change password processing. kadm_funcs.c (pwstring;): If NDBM_PW_CHECK is defined, then do the NDBM-based dictionary check. Build kadmind4 using the make option PW_CHECK=-DNDBM_PW_CHECK if this feature is desired. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10621 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_server.c (krb_log): Print the year using 4 digit to avoidTheodore Tso1998-05-082-2/+7
| | | | | | Y2K issues. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10556 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-062-1/+6
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10552 dc483132-0cff-0310-8789-dd5450dbe970
* POSIX states that getopt returns -1 when it is done parsing options,Theodore Tso1998-05-066-4/+16
| | | | | | not EOF. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10550 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Enable v4 kadmin tests only if athenaEzra Peisach1998-03-032-1/+6
| | | | | | compatibility is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10496 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Enable v4 kadmin tests only if athenaEzra Peisach1998-03-032-0/+12
| | | | | | compatibility is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10495 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (env-setup.stmp): If env-setup.stamp needs to be rebuilt,Theodore Tso1998-03-023-3/+15
| | | | | | | | | set CONFIG_FILES so that we only regenerate that one file. env-setup.shin: Rename SRCTOPDIR to S_TOP, which has been fixed to deal with absolute source paths. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10488 dc483132-0cff-0310-8789-dd5450dbe970
* Define S_TOP to contain an absolute pathname to the top of the sourceTheodore Tso1998-03-022-5/+12
| | | | | | tree. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10487 dc483132-0cff-0310-8789-dd5450dbe970
* * env-setup.shin (STOP): SRCTOP -> SRCTOPDIRTom Yu1998-03-012-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10485 dc483132-0cff-0310-8789-dd5450dbe970
* document previousTom Yu1998-03-011-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10484 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix up somewhat (SRCTOP -> SRCTOPDIR) and also getTom Yu1998-03-011-1/+2
| | | | | | directory correct. (`pwd`/..) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10483 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (env-setup.stamp): Fix up to use $(thisconfigdir)Tom Yu1998-02-282-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10482 dc483132-0cff-0310-8789-dd5450dbe970
* Collapse all configure.in files under the kadmin directory into theTheodore Tso1998-02-2840-142/+156
| | | | | | kadmin directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10481 dc483132-0cff-0310-8789-dd5450dbe970
* * schpw.c (process_chpw_request): Free memory of allocated forEzra Peisach1998-02-253-4/+20
| | | | | | | | | local address. * ovsec_kadmd.c (do_schpw): Call krb5_kt_close to free memory allocated in keytab routines. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10474 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-1828-31/+100
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* * ovsec_kadmd.c (kadm_svc_run): Fix naming of _rpc_dtablesize()Tom Yu1998-02-152-1/+6
| | | | | | that was missed earlier. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10462 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_rpc_svc.c: Punt naughty RCS keywords. Update headerTom Yu1998-02-143-76/+11
| | | | | | | | | locations. * ovsec_kadmd.c: Update header locations. Punt naughty RCS keywords. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10453 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Add commented out AC_OUTPUT to force autoreconf toTom Yu1998-02-122-1/+6
| | | | | | rebuild the configure script. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10425 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-1233-34/+108
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Remove install rulesTom Yu1998-01-302-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10393 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc.conf.proto: Add kpasswd_port line so kadmind can start asEzra Peisach1998-01-212-0/+6
| | | | | | non-root for testing. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10366 dc483132-0cff-0310-8789-dd5450dbe970
* * schpw.c: New file. Support for Cygnus chpw.Tom Yu1998-01-211-0/+372
| | | | | | [oops forgot this earlier] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10359 dc483132-0cff-0310-8789-dd5450dbe970
* * schpw.c: New file. Support for Cygnus chpwTom Yu1998-01-213-3/+173
| | | | | | | | * ovsec_kadmd.c: Add support for Cygnus chpw. * Makefile.in (OBJS): Add schpw.o. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10358 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_util.c: Add flag indicating that policy db is to be closed.Ezra Peisach1997-11-044-4/+29
| | | | | | | | | | | | Change '-f" option to "-sf" to indicate stash file on command line. * kdb5_stash.c (kdb5_stash): Indicate that policy db should be closed, free context when done. * kadm5_create.c (kadm5_create): Fix up memory leaks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10265 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_server.h: Declare kadm_context as extern so it will not beEzra Peisach1997-10-232-1/+6
| | | | | | multiply defined in all source files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10247 dc483132-0cff-0310-8789-dd5450dbe970
* Include either tcl.h or tcl/tcl.h. On debian linux, the tcl development headersEzra Peisach1997-10-227-0/+29
| | | | | | live in a subdir. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10243 dc483132-0cff-0310-8789-dd5450dbe970
* * server_stubs.c (CHANGEPW_SERVICE): Modify to free allocatedEzra Peisach1997-10-153-3/+46
| | | | | | | | | | | | | | | | | | | memory in request. (setup_gss_names): Free memory in case of failure. (chrand_principal_1): Call free_server_handle for failure cleanup. * ovsec_kadmd.c (main): Cleanup memory by calling acl_finish, gss_release_name, and krb5_free_context Some of these fixes are to make accounting easier with Purify upon shutdown while the server_stubs.c fixes take care of a per-request memory leak present for many requests. automatically CVS: CVS: Committing in . CVS: CVS: Modified Files: ---------------------------------------------------------------------- git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10233 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (quit): Call krb5_free_contextEzra Peisach1997-10-072-0/+5
| | | | | | | Makes it easier to search for memory leaks with purify if the context memory is freed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10215 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-022-1/+5
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Remove KRB5_USE_INET, HAS_UNISTD_H, HAS_SETVBUF, and replaceTom Yu1997-09-263-6/+14
| | | | | | | with appropriate autoconf-style symbols. See individual ChangeLogs for details. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10202 dc483132-0cff-0310-8789-dd5450dbe970