Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
6c6726d76c
drop hdb_fetch
2010-11-28 11:46:46 -08:00
Love Hornquist Astrand
917920e8cd
implement fetch_kvno
2010-11-28 11:34:33 -08:00
Cédric Schieli
901d655ba7
Make sure existing entries can be found by userid
...
A typo in LDAP__lookup_princ makes using existing LDAP entries broken,
a new entry is always created even if an entry with proper uid and
structural objectclass can be found.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-08-08 08:23:12 -07:00
Love Hornquist Astrand
d36402a671
Don't assume ldap_bv2escaped_filter_value() is exported
2009-10-11 11:17:56 -07:00
Love Hornquist Astrand
ff87429593
Make LDAP code fetch less attributes from LDAP server when KDC is asking
...
Johan Gadsjö did a awesome analysis of the LDAP access pattens
and sent us a patch that reduced the calls the ldap server by 4
times as many. The patch was adopted and change to avoid compile
time depencies and make the determination runtime instead. Thanks!
2009-10-03 13:20:41 -07:00
Love Hörnquist Åstrand
5a9dd54e95
drop RCSID
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25319 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-05 05:09:16 +00:00
Love Hörnquist Åstrand
4ff6ed4652
set hdb_capability_flags = 0
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-05 05:07:52 +00:00
Love Hörnquist Åstrand
597f9dbdfa
make module private functions static
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24976 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-28 17:08:46 +00:00
Love Hörnquist Åstrand
883bf6e6d8
quote userid too
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23956 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-26 18:20:37 +00:00
Love Hörnquist Åstrand
18e483856b
Use ldap_bv2escaped_filter_value to filter the search query. Idea from Michael Ströder.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23955 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-26 18:20:23 +00:00
Love Hörnquist Åstrand
21fdd30824
Filter out searches for *@REALM, which takes very long time, and other
...
ldap special characters, this should really be quoting instead.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23941 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 01:32:04 +00:00
Love Hörnquist Åstrand
9f696b11c2
Patch to handle sambaPwdLastSet, sambaPwdMustChange was drop some Samba versions ago.
...
From David Markey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23929 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-18 21:16:35 +00:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
0c425c680b
Malloc enough memory, from Brian Scott.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-02 09:11:48 +00:00
Love Hörnquist Åstrand
7fcd266fdd
use krb5_set_error_message
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23316 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 04:32:32 +00:00
Love Hörnquist Åstrand
746ad99b8c
Use the _ext api for OpenLDAP, from Honza Machacek (gentoo).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23153 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-30 11:25:57 +00:00
Love Hörnquist Åstrand
1c9234c4f7
Use malloc() instead of static buffer.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-11 21:46:45 +00:00
Love Hörnquist Åstrand
9215d6ea7b
Use ldap_get_values_len, from LaMont Jones via Brian May and Debian.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22587 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-02-11 21:43:27 +00:00
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