Love Hörnquist Åstrand
525c7fe95d
(hdb_list_builtin): return a list of builtin backends
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13547 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-19 20:08:28 +00:00
Love Hörnquist Åstrand
ea42ef5261
clean up error handling, plug memory leaks, and free memory in error path,
...
assume realloc(NULL, ...) works, factor out common code, indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-14 12:38:48 +00:00
Love Hörnquist Åstrand
2220d2a312
use macro for HDB * -> LDAP *
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 22:04:39 +00:00
Love Hörnquist Åstrand
103cb19803
spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 21:03:00 +00:00
Love Hörnquist Åstrand
c5fd7d3102
Intergrate Heimdal's hdb-ldap and the Samba password database.
...
From: Andrew Bartlett <abartlet@samba.org >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13460 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 17:38:48 +00:00
Love Hörnquist Åstrand
2e03946bac
revert the part of the file I didn't mean to commit yet (samba support)
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 23:13:16 +00:00
Love Hörnquist Åstrand
34659fc782
support building ldap backend as module
...
sort asn1 hdb files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13431 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 22:30:21 +00:00
Love Hörnquist Åstrand
e4b3116bfe
when building ldap as a shared module, don't include it in the list
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13430 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 22:26:46 +00:00
Love Hörnquist Åstrand
f46a1ac367
make ldap possible to build as a shared module
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13428 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 21:51:24 +00:00
Love Hörnquist Åstrand
44cb7e1d74
add hdb_{,un}seal_key{,_mkey} from Andrew Bartlett <abartlet@samba.org>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13427 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-06 18:58:22 +00:00
Love Hörnquist Åstrand
483b0b78c3
fix all db >= 4.1 cases
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-02-22 12:48:39 +00:00
Love Hörnquist Åstrand
708a148e91
remove enforce-transited-policy, its no longer used
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13224 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-16 16:53:37 +00:00
Love Hörnquist Åstrand
e967835b0c
(LDADD): link with LIB_dlopen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13151 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-11-24 08:56:51 +00:00
Johan Danielsson
cf7d2c2fb1
add flag to enforce transited policy
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-21 11:09:59 +00:00
Love Hörnquist Åstrand
f1e2f5f57a
libhdb might depend on LIB_dlopen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-21 14:04:55 +00:00
Love Hörnquist Åstrand
7ec533b6db
improve readability of ->open ifdef, check if version >= 4.1
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12882 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 02:38:02 +00:00
Love Hörnquist Åstrand
0540f13b86
prefix all struct HDB elements with hdb_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
Love Hörnquist Åstrand
497233da66
include <limits.h> for ULONG_MAX
...
noted by Wissler Magnus <M.Wissler@abalon.se > on heimdal-discuss
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-10 21:54:58 +00:00
Love Hörnquist Åstrand
c0d1c74757
try to include more db headers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-29 16:53:37 +00:00
Love Hörnquist Åstrand
32276ee7b7
patch for working with DB4 on heimdal-discuss
...
From: Luke Howard <lukeh@PADL.COM >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12697 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-29 16:37:25 +00:00
Love Hörnquist Åstrand
1c5aca620c
code rewrite from Luke Howard <lukeh@PADL.COM>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12642 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-25 20:29:03 +00:00
Love Hörnquist Åstrand
b6609c3d3b
(read_master_mit): krb5_ret_int16 takes a int16_t as argument
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-17 18:44:08 +00:00
Love Hörnquist Åstrand
77d774d5f4
remove stuff more stuff that sneeked in with last commit
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12553 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 18:09:55 +00:00
Love Hörnquist Åstrand
802923ad69
split generated source from non generated source we make-proto.pl can
...
generate prototypes for non generate-source only (make-proto.pl dies
on asn1compile's .c files)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12551 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-16 17:57:18 +00:00
Love Hörnquist Åstrand
41e7cd2af1
(hdb_create): check for dynamic backend after static to avoid warning
...
from dynamic backend when using a known static backend
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12445 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-18 08:03:07 +00:00
Love Hörnquist Åstrand
7bafce13ca
(LDAP_store): log what principal/dn failed
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-17 22:45:12 +00:00
Love Hörnquist Åstrand
294cccfdf3
avoid unnecessary setting of variable
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12433 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-13 15:41:17 +00:00
Love Hörnquist Åstrand
a1a43053f6
(find_dynamic_method): if there isn't a prefix, don't load anything
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12415 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-30 10:34:05 +00:00
Love Hörnquist Åstrand
1efa899c5a
Dynamic backend loading, based on patch from Luke Howard <lukeh@PADL.COM>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12411 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-29 12:10:00 +00:00
Love Hörnquist Åstrand
c12e22c5ee
add struct hdb_so_method and HDB_INTERFACE_VERSION
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12410 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-29 12:08:34 +00:00
Love Hörnquist Åstrand
c36bc39594
use int2HDBFlags/HDBFlags2int
...
From: Alberto Patino <jalbertop@aranea.com.mx >, Luke Howard <lukeh@PADL.COM >
Pointed out by Andrew Bartlett of Samba
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12379 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-06-17 12:53:16 +00:00
Love Hörnquist Åstrand
cb73a5dde8
(LDAP__connect): bind sasl "EXTERNAL" to ldap connection
...
(LDAP_store): remove superfluous argument to asprintf
From Alberto Patino <jalbertop@aranea.com.mx >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-27 10:03:54 +00:00
Love Hörnquist Åstrand
6db34748ac
(hdb_unseal_keys_mkey): truncate key to the key length when key is
...
longer then expected length, its probably longer since the encrypted
data was padded, reported by Aidan Cully <aidan@kublai.com >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11931 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-28 02:01:33 +00:00
Love Hörnquist Åstrand
d943f8b219
(_hdb_fetch): handle error code from hdb_value2entry
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-01-14 06:54:32 +00:00
Johan Danielsson
77de2f4011
use crypto-headers.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11444 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-10 20:03:49 +00:00
Johan Danielsson
9dbccbeb68
use ASN1_MALLOC_ENCODE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11375 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 18:42:22 +00:00
Johan Danielsson
c8ac575762
use ASN1_MALLOC_ENCODE
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11373 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-04 16:32:30 +00:00
Assar Westerlund
46cc72d9f5
(find_db): const-correctness in parameters to krb5_config_get_next
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11230 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-26 13:28:11 +00:00
Johan Danielsson
d2e28eb60c
add "-q -P comment" to header generation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 16:17:16 +00:00
Assar Westerlund
aa2bd6c196
(read_master_encryptionkey): use a proper type for len
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 18:59:49 +00:00
Johan Danielsson
4fa94362ee
fix for storage change
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-05-24 15:23:43 +00:00
Assar Westerlund
1a7ff38b12
(libhdb_la_LDFLAGS): bump version to 7:5:0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10876 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-03-10 23:43:30 +00:00
Jacques A. Vidrine
84ed3d7a7c
Fix a bug where kstash crashes if there is no krb5.conf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-12-05 14:41:47 +00:00
Assar Westerlund
cee81d995f
remove libasn1.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-27 16:23:15 +00:00
Johan Danielsson
5f68cd1d3c
(hdb_set_master_keyfile): clear error string when not returning error
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10716 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-18 07:42:09 +00:00
Assar Westerlund
9b1b60332d
prefer ndbm.h to dbm.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10640 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-03 05:03:01 +00:00
Johan Danielsson
452e98c132
some pretty much untested changes from Luke Howard
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-31 18:19:49 +00:00
Assar Westerlund
9b8ad9f282
set and use INCLUDE_des
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 08:31:31 +00:00
Assar Westerlund
0e97ef4ce8
add DBLIB and LIB_NDBM to the dependencies for libhdb.la
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10530 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-23 01:47:15 +00:00
Assar Westerlund
aad564d1c2
re-write the handling of crypto libraries. try to use the one of
...
openssl's libcrypto or krb4's libdes that has all the required
functionality (md4, md5, sha1, des, rc4). if there is no such
library, the included lib/des is built.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-22 20:30:33 +00:00