Andrew Tridgell
f9eae32f4b
s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them
2010-04-06 20:27:11 +10:00
Andrew Tridgell
845e0cbe6f
build: commit all the waf build files in the tree
2010-04-06 20:26:48 +10:00
Jelmer Vernooij
aed295b97e
s4-python: Remove convenience macro PyErr_SetStringError.
...
This macro assumed that all errors were runtime errors.
2010-04-04 00:22:29 +02:00
Andrew Tridgell
7ed349cace
pytalloc: allow for using a system libtalloc-dev with pytalloc
...
When we have a system talloc library, we still need to grab pytalloc.h
from lib/talloc. We don't want to just use -Ilib/talloc, as otherwise
we'll get the in-tree talloc.h which may not be compatible with the
system talloc.h
So we need to give the path to pytalloc.h
2010-03-29 21:34:29 +11:00
Matthias Dieter Wallnöfer
d570a0af0b
s4:auth/credentials/credentials.c - initialise more content
...
Now all data should be initialised
2010-03-26 18:14:11 +01:00
Andrew Bartlett
25723914c5
s4:python Add bindings to set GENSEC flags on credentials in python
...
This should allow these to be manipulated by python scripts that need
encrypted connections.
Andrew Bartlett
2010-02-26 21:38:42 +11:00
Andrew Tridgell
781ad038c9
s4-krb5: propogate errors from a lot more kerberos functions
...
We need to be able to give sensible error messages when a kerberos
calls fails. This propogates the kerberos error up the stack to the
caller.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-26 13:59:16 +11:00
Andrew Bartlett
a9d9447d5a
s4:credentials Add hooks to extract a named Kerberos credentials cache
...
This allows the integration of external tools that can't be linked
into C or python, but need to authenticate as the local machine
account.
The machineaccountccache script demonstrates this, and debugging has
been improved in cli_credentials_set_secrets() by passing back and
error string.
Andrew Bartlett
2010-02-20 17:58:07 +11:00
Matthias Dieter Wallnöfer
d5af819b1a
s4:auth/credentials/credentials.c - Initialise the "lm_response" and "nt_response" structures
...
In some cases those structures are not initialised and the whole authentication
system crashes with a SIGSEGV. Bug discovered by Matthieu Patou in bug #6755 .
2010-02-12 15:04:07 +01:00
Matthias Dieter Wallnöfer
e34637b2a6
s4:Remove "Py_RETURN_NONE" compatibility code
...
This was needed only by Python 2.3 which we no longer support.
2010-02-09 17:53:09 +01:00
Jelmer Vernooij
fbb59b2dca
dsdb: Fix dependencies when building against system ldb.
2009-12-29 16:26:21 +01:00
Andrew Bartlett
609b831462
s4:credentials Put the 'secrets.keytab' in the same directory as secrets.ldb
...
This avoids trouble when the secrets.ldb is updated with ldbedit but
an smb.conf is not specified.
Andrew Bartlett
2009-11-02 16:36:52 +11:00
Andrew Tridgell
3050f83288
s4-python: we need to include Python.h first
...
If we don't include Python.h first then we get a pile of warnings due
to broken redefines of XOPEN_SOURCE in the Python includes.
2009-10-23 16:23:01 +11:00
Endi S. Dewata
180ca8ed88
s4:auth - fixed problem reading bind DN from secrets database
2009-10-16 14:08:11 +02:00
Matthias Dieter Wallnöfer
3bd452e3f6
s4:auth/credentials/credentials - fix uninitalised pointers
...
This should fix bug #6755 .
2009-10-15 10:32:12 +02:00
Jelmer Vernooij
7b8fcacda2
pycredentials: Raise MemoryError when unable to create objects.
2009-06-17 20:45:38 +02:00
Jelmer Vernooij
d4172bbcc5
pycredentials: Fix memory leak.
2009-06-17 20:45:38 +02:00
Andrew Bartlett
9b261c008a
s4:heimdal: import lorikeet-heimdal-200906080040 (commit 904d0124b46eed7a8ad6e5b73e892ff34b6865ba)
...
Also including the supporting changes required to pass make test
A number of heimdal functions and constants have changed since we last
imported a tree (for the better, but inconvenient for us).
Andrew Bartlett
2009-06-12 07:45:48 +10:00
Jelmer Vernooij
6ace18904d
Fix more unresolved symbols.
2009-06-02 18:05:41 +02:00
Jelmer Vernooij
fe2b04b4bb
python: Move helper functions for using param into a separate file rather
...
than linking against the python module.
2009-06-02 18:05:40 +02:00
Andrew Bartlett
5095d7b1c8
Rework Samba4 to use the new common libcli/auth code
...
In particular, this is the rename from creds_ to netlogon_creds_, as
well as other links to use the new common crypto.
Andrew Bartlett
2009-04-14 16:23:44 +10:00
Stefan Metzmacher
8a264753a1
s4:auth/credentials: include gssapi/gssapi_krb5.h
...
metze
2009-03-26 15:01:02 +01:00
Stefan Metzmacher
0872fa7b1f
s4:pycredentials: fix compiler warnings
...
metze
2009-02-05 17:48:12 +01:00
Stefan Metzmacher
eb012dd212
s4:auth/credentials: the python bindings don't use swig anymore
...
metze
2009-02-02 15:16:09 +01:00
Jelmer Vernooij
c9d193eb08
Add prototypes required by samba-gtk.
2009-01-25 05:32:30 +01:00
Jelmer Vernooij
ba5d6e6d70
Avoid using a utility header for Python replacements included in Samba,
...
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea
s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4
2009-01-07 15:03:16 -08:00
Jelmer Vernooij
d2c70d24e1
py: Properly increase the reference counter of Py_None.
2009-01-06 04:13:57 +01:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"
for s in $list; do
o=`echo $s | cut -d ':' -f1`
n=`echo $s | cut -d ':' -f2`
r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
for f in $files; do
cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
mv $f.tmp $f
done
done
metze
2008-12-29 20:46:40 +01:00
Jelmer Vernooij
d58270c537
Add header for pyparam.
2008-12-22 04:38:57 +01:00
Jelmer Vernooij
f36ff0bac2
Include errors.i verbatim in security.i, as it's the only file still using it.
2008-12-21 05:35:39 +01:00
Jelmer Vernooij
263c6670fc
Convert credentials Python module to "manual" C - no SWIG used to generate
...
the C code.
2008-12-21 05:29:23 +01:00
Jelmer Vernooij
87ec1d2532
Make sure prototypes are always included, make some functions static and
...
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
1b99d8fbb5
Use common util_file code.
2008-10-12 17:34:43 +02:00
Jelmer Vernooij
9565999755
Fix include paths to new location of libutil.
2008-10-11 21:31:42 +02:00
Jelmer Vernooij
caa4e42860
Move lib/util from source4 to top-level libutil.
...
Conflicts:
source4/Makefile
2008-10-11 21:05:38 +02:00
Jelmer Vernooij
6925202bde
Move source4/lib/crypto to lib/crypto.
2008-09-24 15:30:23 +02:00
Jelmer Vernooij
6f6e42ce60
Generate with 1.3.36.
2008-09-18 23:55:50 +02:00
Stefan Metzmacher
0299edbc02
auth/credentials: explain why we need to the enctypes for the gssapi layer
...
metze
(This used to be commit 88970c4d41
)
2008-07-28 09:29:42 +02:00
Stefan Metzmacher
21592142c3
auth/credentials: use the same enctypes when getting a TGT and a TGS
...
metze
(This used to be commit 9fc5750156
)
2008-07-26 21:46:43 +02:00
Andrew Bartlett
63d91e9ab0
Kill of some bogus debugs for the world who does not use the LDAP backend
...
(This used to be commit 5bde586bdb
)
2008-07-15 19:31:37 +10:00
Andrew Bartlett
f5d18f4d24
Allow ldap credentials to be (optionally) stored in secrets.ldb
...
This includes a simple bind DN, or SASL credentials.
The error messages are reworked as on systems without an LDAP backend,
we will fail to find this record very often.
Andrew Bartlett
(This used to be commit 95825ae6d5
)
2008-07-15 15:05:41 +10:00
Stefan Metzmacher
78ed0f72a6
credentials: gss_set_cred_option() doesn't like GSS_C_NO_BUFFER
...
metze
(This used to be commit 31cf1a781e
)
2008-06-27 12:43:04 +02:00
Michael Adam
65ce11c5f3
credentials: gss_set_cred_option() needs gss_cred_id_t * argument, not gss_cred_id_t.
...
This call was added in f573c1ff44
.
Metze, please check!
Michael
(This used to be commit 2b40fd7e95
)
2008-06-27 09:26:35 +02:00
Stefan Metzmacher
809d82d169
credentials: set GSS_KRB5_CRED_NO_CI_FLAGS_X to avoid GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG
...
metze
(This used to be commit f573c1ff44
)
2008-06-19 13:59:38 +02:00
Simo Sorce
929adc9efa
Make up the right dependencies now that ldb depends on libevents
...
(This used to be commit 3b8eec7ca3
)
2008-06-14 11:59:19 -04:00
Andrew Bartlett
be14efbdf9
Revert Jelmer's CFLAGS commit e2b71a0ecb
...
This commit broke the build, because not all files (libreplace, popt)
were updated.
Andrew Bartlett
(This used to be commit 3faacf4351
)
2008-05-31 08:35:55 +10:00
Jelmer Vernooij
39f50afc57
Move CFLAGS handling out of smb_build.
...
(This used to be commit e2b71a0ecb
)
2008-05-30 02:07:28 +02:00
Jelmer Vernooij
73b789b6d2
Add docstrings to a couple more python modules.
...
(This used to be commit b4560c90e5
)
2008-05-24 04:01:57 +02:00
Jelmer Vernooij
d0b3551097
Add some docstrings to credentials python module.
...
(This used to be commit 7b4435a68c
)
2008-05-23 00:35:39 +02:00