Skip Menu |
 

Subject: "kdb5_util load" to existing db doesn't work, needed for kpropd
Database propagation to a slave KDC depends on being able to run "kdb5_util load" and have it
replace the existing database after a successful load. This doesn't work since the DAL
integration. (See also lack of sufficient test cases.)

Proposed fix for 1.5: New argument to create/open saying "this is a temporary database, not
the live one", and a new operation "promote_db" to make the temporary db become the live one.
This functionality won't work for ldap; deal with that later.
From: raeburn@mit.edu
Subject: SVN Commit
New kdb backend operation promote_db, makes a temporary database become the
live database. New function krb5_db_promote invokes it.

Commit By: raeburn



Revision: 18282
Changed Files:
U trunk/src/include/kdb.h
U trunk/src/kadmin/dbutil/dump.c
U trunk/src/lib/kdb/kdb5.c
U trunk/src/lib/kdb/kdb5.h
From: hartmans@mit.edu
Subject: SVN Commit
* plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
(krb5_db2_db_set_name): likewise
(krb5_db2_open): likewise
(krb5_db2_create): likewise
(krb5_db2_db_create): likewise
(krb5_db2_db_set_option): likewise
(krb5_db2_destroy): likewise

* plugins/kdb/db2/kdb_db2.h: Add tempdb to db context

* plugins/kdb/db2/kdb_db2.c (k5db2_dbopen): Take flag for
temporary databases.


Commit By: hartmans



Revision: 18285
Changed Files:
U trunk/src/plugins/kdb/db2/kdb_db2.c
U trunk/src/plugins/kdb/db2/kdb_db2.h
From: raeburn@mit.edu
Subject: SVN Commit
* kdb.h (krb5_def_promote_db): Declare.

Commit By: raeburn



Revision: 18291
Changed Files:
U trunk/src/include/kdb.h
From: raeburn@mit.edu
Subject: SVN Commit
* kdb_default.c (krb5_def_promote_db): New function.
* kdb5.c (kdb_setup_opt_functions): Use it if promote_db is null.

* libkdb5.exports: Export krb5_db_promote.

Commit By: raeburn



Revision: 18292
Changed Files:
U trunk/src/lib/kdb/kdb5.c
U trunk/src/lib/kdb/kdb_default.c
U trunk/src/lib/kdb/libkdb5.exports
From: raeburn@mit.edu
Subject: SVN Commit
* kdb_db2.c: Don't include kdb_compat.h.
(OLD_COMPAT_VERSION_1): Don't define.
(krb5_db2_db_create): For temporary db, use different names for all files.
(krb5_db2_open, krb5_db2_create, krb5_db2_destroy): Fix check for "temporary"
in supplied db_args.
(krb5_db2_db_rename): New function, restored from pre-DAL code and hacked up
a lot to mostly work.
(krb5_db2_promote_db): New function.
* db2_exp.c: Add promote_db entry.

Commit By: raeburn



Revision: 18295
Changed Files:
U trunk/src/plugins/kdb/db2/db2_exp.c
U trunk/src/plugins/kdb/db2/kdb_db2.c
From: raeburn@mit.edu
Subject: SVN Commit
* dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini.

Commit By: raeburn



Revision: 18296
Changed Files:
U trunk/src/kadmin/dbutil/dump.c
Current patches need cleanup for long-term, but seem to be working....
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18282 from trunk

r18282@cathode-dark-space: raeburn | 2006-06-29 23:51:48 -0400
ticket: 3964
status: open

New kdb backend operation promote_db, makes a temporary database become the
live database. New function krb5_db_promote invokes it.



Commit By: tlyu



Revision: 18300
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/include/kdb.h
U branches/krb5-1-5/src/kadmin/dbutil/dump.c
U branches/krb5-1-5/src/lib/kdb/kdb5.c
U branches/krb5-1-5/src/lib/kdb/kdb5.h
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18281 from trunk as pre-req for r18285

r18281@cathode-dark-space: hartmans | 2006-06-29 23:02:23 -0400

* plugins/kdb/db2/kdb_db2.c (krb5_db2_create): Remove incorrect
comment.



Commit By: tlyu



Revision: 18301
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/plugins/kdb/db2/kdb_db2.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18285 from trunk

r18285@cathode-dark-space: hartmans | 2006-06-30 01:43:40 -0400
Ticket: 3964
Status: open

* plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
(krb5_db2_db_set_name): likewise
(krb5_db2_open): likewise
(krb5_db2_create): likewise
(krb5_db2_db_create): likewise
(krb5_db2_db_set_option): likewise
(krb5_db2_destroy): likewise

* plugins/kdb/db2/kdb_db2.h: Add tempdb to db context

* plugins/kdb/db2/kdb_db2.c (k5db2_dbopen): Take flag for
temporary databases.




Commit By: tlyu



Revision: 18302
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/plugins/kdb/db2/kdb_db2.c
U branches/krb5-1-5/src/plugins/kdb/db2/kdb_db2.h
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18291 from trunk

r18291@cathode-dark-space: raeburn | 2006-06-30 16:17:04 -0400
ticket: 3964
status: open

* kdb.h (krb5_def_promote_db): Declare.



Commit By: tlyu



Revision: 18303
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/include/kdb.h
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18292 from trunk

r18292@cathode-dark-space: raeburn | 2006-06-30 16:18:39 -0400
ticket: 3964
status: open

* kdb_default.c (krb5_def_promote_db): New function.
* kdb5.c (kdb_setup_opt_functions): Use it if promote_db is null.

* libkdb5.exports: Export krb5_db_promote.



Commit By: tlyu



Revision: 18304
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/lib/kdb/kdb5.c
U branches/krb5-1-5/src/lib/kdb/kdb_default.c
U branches/krb5-1-5/src/lib/kdb/libkdb5.exports
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18295 from trunk

r18295@cathode-dark-space: raeburn | 2006-06-30 17:05:21 -0400
ticket: 3964
status: open

* kdb_db2.c: Don't include kdb_compat.h.
(OLD_COMPAT_VERSION_1): Don't define.
(krb5_db2_db_create): For temporary db, use different names for all files.
(krb5_db2_open, krb5_db2_create, krb5_db2_destroy): Fix check for "temporary"
in supplied db_args.
(krb5_db2_db_rename): New function, restored from pre-DAL code and hacked up
a lot to mostly work.
(krb5_db2_promote_db): New function.
* db2_exp.c: Add promote_db entry.



Commit By: tlyu



Revision: 18305
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/plugins/kdb/db2/db2_exp.c
U branches/krb5-1-5/src/plugins/kdb/db2/kdb_db2.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18296 from trunk

r18296@cathode-dark-space: raeburn | 2006-06-30 17:07:25 -0400
ticket: 3964
status: open

* dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini.



Commit By: tlyu



Revision: 18306
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/kadmin/dbutil/dump.c
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18276 as a prereq

r18276@cathode-dark-space: raeburn | 2006-06-29 19:51:55 -0400
* kdb5_util.c (add_db_arg): New function.
(main): Use it.
* kdb5_util.h (add_db_arg): Declare it.
* kdb5_create.c (kdb5_create): Use it.
* dump.c (load_db): Use it.



Commit By: tlyu



Revision: 18307
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/kadmin/dbutil/dump.c
U branches/krb5-1-5/src/kadmin/dbutil/kdb5_create.c
U branches/krb5-1-5/src/kadmin/dbutil/kdb5_util.c
U branches/krb5-1-5/src/kadmin/dbutil/kdb5_util.h
From: tlyu@mit.edu
Subject: SVN Commit
pull up r18277 from trunk as it is a missing pre-req

r18277@cathode-dark-space: raeburn | 2006-06-29 20:17:43 -0400
(add_db_arg): Fix silly bug.
(extended_com_err_fn): Don't look up or print error message if the error code
is 0.



Commit By: tlyu



Revision: 18311
Changed Files:
_U branches/krb5-1-5/
U branches/krb5-1-5/src/kadmin/dbutil/kdb5_util.c