Commit Graph

62 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
ca152336fa When using sambaNTPassword, avoid adding more then one enctype 23 to
krb5EncryptionType.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21500 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-11 15:20:18 +00:00
Love Hörnquist Åstrand
393f98a743 Make work again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20219 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-15 00:03:42 +00:00
Love Hörnquist Åstrand
0c91a6f74e update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-01 14:34:15 +00:00
Love Hörnquist Åstrand
7d5e25b4ba Set hdb->hdb_db for ldap.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-01 13:18:22 +00:00
Love Hörnquist Åstrand
238e717568 Clear errno before calling the strtol functions. From Paul Stoeber to
OpenBSD by Ray Lai and Björn Sandell.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19215 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-04 23:41:18 +00:00
Love Hörnquist Åstrand
5518871b9c Make build again from the hdb_entry wrapping. Patch from Andreas Hasenack.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-11-28 14:23:13 +00:00
Love Hörnquist Åstrand
2f0c4b1f20 Make compile.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18714 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-20 21:05:10 +00:00
Love Hörnquist Åstrand
3e112be2cc don't use the sambaNTPassword if there is ARCFOUR key already.
Idea from Andreas Hasenack.
While here, set pw change time using sambaPwdLastSet


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-14 21:02:46 +00:00
Love Hörnquist Åstrand
f9160af5a1 (LDAP_message2entry): in declaration set variable_name as "hdb_entry_ex"
(hdb_ldap_common): change "arg" in condition (if) to "search_base"
(hdb_ldapi_create): change "serach_base" to "search_base"
From Alex V. Labuta.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16862 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-30 09:03:27 +00:00
Love Hörnquist Åstrand
b81ea8dcbc Log the filter string to the error message.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16690 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-03 12:17:10 +00:00
Love Hörnquist Åstrand
eb128f4928 Wrap hdb_entry with hdb_entry_ex, add url support, add ldapi support.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16377 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-12-12 12:34:23 +00:00
Love Hörnquist Åstrand
8822335041 only add krb5EncryptionType for already existing entries or heidmal entries
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15938 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-19 13:07:04 +00:00
Love Hörnquist Åstrand
e621738b3a drop <ctype.h>, no longer use any of the is* macros in this file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14820 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-18 08:03:54 +00:00
Love Hörnquist Åstrand
6058abac27 use the newly written hex function from roken and remove the old implementation
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-04 15:13:01 +00:00
Love Hörnquist Åstrand
5e2d8fe7ba Add account expiration for samba from James F. Hranicky <jfh@cise.ufl.edu>.
Add LDAP_addmod_integer and use it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-28 12:59:11 +00:00
Love Hörnquist Åstrand
c932cd471a add (c) kth
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14393 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-13 16:29:53 +00:00
Love Hörnquist Åstrand
09647068e1 (pos): uppercase in character
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14392 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-13 08:46:07 +00:00
Love Hörnquist Åstrand
62b865cdd2 (LDAP__bytes2hex,LDAP__hex2bytes): encode nibbels in the other order
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-12 23:29:42 +00:00
Love Hörnquist Åstrand
cd395c78ad s/objectclass/objectClass/
check if attribute exists before we try to delete it
LDAP__bytes2hex encodes in strange byte order, is this really right ?


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14389 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-12 21:37:35 +00:00
Love Hörnquist Åstrand
17649d29d8 (LDAP_firstkey): When iterating over all entries, search for samba
accounts too, From: "James F. Hranicky" <jfh@cise.ufl.edu>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14386 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-11 22:41:46 +00:00
Love Hörnquist Åstrand
ca797bb5d5 (krb5kdcentry_attrs): ask for attribute uid too
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-11 19:17:02 +00:00
Love Hörnquist Åstrand
30bd897db2 (LDAP_message2entry): if the entry is missing both krb5PrincipalName
and uid, it must be broken, ignore it and return it doesn't exists.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14383 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-12-11 18:55:18 +00:00
Love Hörnquist Åstrand
158d6369e8 (LDAP_entry2mods): allow for pre-c99 compilers, From metze at samba.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-22 06:05:18 +00:00
Love Hörnquist Åstrand
255b3f04e7 (LDAP_seq): try handling errors better
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14031 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-08 14:29:20 +00:00
Love Hörnquist Åstrand
6b8911bca7 (LDAP__connect): call ldap_initialize with right argument
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14014 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-01 01:58:17 +00:00
Love Hörnquist Åstrand
edb7f2e0f2 if its the entry just contains the structural object (no samba nor
heimdal object), add an aux heimdal object on to it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-05 12:03:18 +00:00
Love Hörnquist Åstrand
ddcc2d1a97 Allow the objectClass to be "sambaSamAccount" or structural_object
when searching for uid entries.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-02 14:19:07 +00:00
Love Hörnquist Åstrand
31f45fb97b add creation base that defaults to the search base
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13902 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-02 13:06:38 +00:00
Love Hörnquist Åstrand
1459542470 indent like the rest of the code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13901 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-01 22:58:50 +00:00
Love Hörnquist Åstrand
2e20f6c28f check return values from ldap operations and close it we get back
LDAP_SERVER_DOWN. stupid ldap client lib, you should retry by yourself.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13899 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-01 20:09:29 +00:00
Love Hörnquist Åstrand
fabc739054 require search base to be configured, create local context structure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-01 15:29:36 +00:00
Love Hörnquist Åstrand
31a565d11c clean, indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-28 11:34:32 +00:00
Love Hörnquist Åstrand
c2ac17b82e (LDAP_entry2mods): make sure krb5KeyVersionNumber is added on new entires
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-28 10:36:03 +00:00
Love Hörnquist Åstrand
0dd55a0e22 indent
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-27 10:58:54 +00:00
Love Hörnquist Åstrand
8447f193fb make samba_forwardable a krb5_boolean
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13860 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:34:46 +00:00
Love Hörnquist Åstrand
1824e16f28 make samba forwarding a runtime configure option
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13859 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:33:26 +00:00
Love Hörnquist Åstrand
f83d4958cb (LDAP_message2entry): allow samba entires to be forwarded
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13857 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:24:57 +00:00
Love Hörnquist Åstrand
d5b83091fb (LDAP_message2entry): fix [] test
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:22:06 +00:00
Love Hörnquist Åstrand
89494bfa4b (LDAP_message2entry): remove bogus length check
From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:20:02 +00:00
Love Hörnquist Åstrand
ffa9994f58 (LDAP_message2entry): in the sambaNTPassword case, make sure
ent->etypes are allocated, From: Andrew Bartlett <abartlet@samba.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-23 21:17:27 +00:00
Love Hörnquist Åstrand
84dd284f6a (hdb_ldap_create): allow configuration of default structural object
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13676 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-01 16:30:09 +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
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
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
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
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
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