1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

1799 Commits

Author SHA1 Message Date
Tim Potter
b02b2fa347 r2408: Tridge suggested that all the structures from misc.idl (policy handles,
sids, security descriptors and acls) can be automatically generated
instead of hand-written.  Fix up the swig wrapper generator and helper
routines to do this.  (Only works for policy handles right now though and
arrays are to be converted into lists instead of being binary blobs).

Fix up wrapper generation for modules that don't define an interface
(e.g misc.idl).
(This used to be commit 160dc90921)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
4a6313a543 r2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w()
(This used to be commit fe60e899d7)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
5fdf3a1c50 r2406: fixed a couple of typos
(This used to be commit 87a6c678fa)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
c997a90183 r2405: expose unix_perms_to_wire() for use by the posix backend, in supporting the UNIX extensions
(This used to be commit a3fd9a911f)
2007-10-10 12:58:49 -05:00
Andrew Tridgell
03cb4367d6 r2404: the first large lump of posix vfs stuff.
this is still very much a skeleton (with many limbs missing too!). I
am committing this early to get some feedback on the approach taken.
(This used to be commit 40d5cae5eb)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
046380c56c r2403: got rid of a unnecessary mem_ctx in the simple backend
(This used to be commit a4dcf005f3)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
f25681b120 r2402: to make ms_fnmatch() case-insensitive we need toupper_w() exposed
(This used to be commit 69413bdcfc)
2007-10-10 12:58:48 -05:00
Stefan Metzmacher
9041c3560f r2401: make our LDAP server useable:
- we need to mark the fd event as writable otherwise we'll never senda packet to the client
- a search response have to ended by a LDAP result message
- return currentTime, supportedLDAPVersion and dnsHostName for testing

ldap -x -s base -h ldap://localhost/ is now works against our LDAP server

metze
(This used to be commit 3a9ca35116)
2007-10-10 12:58:48 -05:00
Andrew Tridgell
b3da2c10e2 r2400: make ms_fnmatch() case insensitive. This is much more efficient than
uppercasing the two whole strings before the call is made, is less
error-prone, and also copes with strings where the upper case version
is longer than the lower case version due to different multi-byte lengths.
(This used to be commit e227ac1edf)
2007-10-10 12:58:48 -05:00
Tim Potter
a502c85fb1 r2399: Display text description of rpc fault in debug message.
(This used to be commit 04aec4c0a3)
2007-10-10 12:58:48 -05:00
Tim Potter
2fe1144f34 r2398: Import Data::Dumper module safely so it doesn't hurt the build farm.
(This used to be commit f88996540c)
2007-10-10 12:58:47 -05:00
Stefan Metzmacher
7b65585eed r2387: fix segfault
seems that [in,out,ref] vars should be initialize
the [in] and [out] part

metze
(This used to be commit 47e613a5a1)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
2432c783ca r2386: fixed some indentation
(This used to be commit 1de5aa5b1d)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
9115d6cb97 r2385: the gensec:krb5 test is not needed here any more, as we do it in the registration code
(This used to be commit bcf9d787d6)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
ae1c28b922 r2384: i missed "nt status support" in my change to the new globals init code
(This used to be commit 7478f50c2f)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
8b7a6df180 r2383: fixed the handling of sending zero length dcerpc packets (I broke this
recently, and this broke the autoidl code)
(This used to be commit 01d66f68f6)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
df2ed66bb0 r2382: considerably improved the Bind and Unbind IDL and test code. We can
now do these two calls successfully against w2k3.

note that you must use ncacn_ip_tcp, and must enable dcerpc sealing,
otherwise w2k3 refuses the first DRSUAPI call.
(This used to be commit 7d3e347422)
2007-10-10 12:58:46 -05:00
Andrew Tridgell
be480ac55c r2381: added a -v debugging option to ldbedit
(This used to be commit 03d4a7832c)
2007-10-10 12:58:46 -05:00
Andrew Tridgell
66f1e8d020 r2380: nicer error reporting in convert_string()
(This used to be commit 6807d336c2)
2007-10-10 12:58:46 -05:00
Andrew Tridgell
3e3f7b0ed0 r2377: added a more generic way of disabling gensec subsystems. For example,
"gensec:ntlmssp=no" will disable ntlmssp.
(This used to be commit 66f88c7d89)
2007-10-10 12:58:46 -05:00
Andrew Tridgell
64a727c6aa r2376: added a way to disable krb5 on the command line. Just use
--option 'gensec:krb5=no'

or put "gensec:krb5 = no" in smb.conf

Given the frustration I've had with kerberos I was very tempted to name
this option --nfk, but resisted the temptation
(This used to be commit 2d710a5eb5)
2007-10-10 12:58:46 -05:00
Stefan Metzmacher
bc6d0b0f0f r2365: remove MSG_NOSIGNAL
metze
(This used to be commit 8ade8ab65f)
2007-10-10 12:58:46 -05:00
Tim Potter
d46b188560 r2359: More consistency fixes: pass a talloc context to every function that
doesn't convert scalar types, more renaming of function names.

Implement conversion fns for dom_sid, dom_sid2 (to struct version stubbed
out).  Also from Python conversions for security_acl and security_descriptors.
(This used to be commit 945a468105)
2007-10-10 12:58:46 -05:00
Tim Potter
aa60dc1630 r2358: More renaming of functions to keep things consistent.
(This used to be commit 84513e4ed1)
2007-10-10 12:58:46 -05:00
Tim Potter
dabb37c547 r2357: Start coding conversion routines for security descriptors, acls and sids.
(This used to be commit c8d13a809b)
2007-10-10 12:58:45 -05:00
Stefan Metzmacher
d9d634ce97 r2347: merge LDAP ASN.1 fixes from trunk
metze
(This used to be commit 492a00d909)
2007-10-10 12:58:45 -05:00
Stefan Metzmacher
fe70e8aa7a r2346: fix some minor stuff
metze
(This used to be commit 56e21d0ce2)
2007-10-10 12:58:45 -05:00
Tim Potter
3791d88b87 r2345: Add test for samr_QuerySecurity()
(This used to be commit f6978a007a)
2007-10-10 12:58:45 -05:00
Tim Potter
2cfd0b654c r2344: Return PyDict_New() in stub functions instead of Py_None to avoid
crashing in garbage collector (hmm - all that was required was probably
a Py_INCREF(Py_None) though).
(This used to be commit a3eac318a6)
2007-10-10 12:58:45 -05:00
Stefan Metzmacher
498ea8485f r2343: - make socket_get_*_addr() return char * not const char *
- add some error mappings
- use some flags SOCKET_FLAG_PEEK ans SOCKET_FLAG_BLOCK

metze
(This used to be commit a375c6b0b1)
2007-10-10 12:58:45 -05:00
Tim Potter
8d14c2a39f r2342: Remove obsolete file.
(This used to be commit b7ef3d0a00)
2007-10-10 12:58:45 -05:00
Andrew Tridgell
d97f808cb6 r2339: my first python commit!
added command line options for binding string, domain, username and password
(This used to be commit e94bec1079)
2007-10-10 12:58:44 -05:00
Tim Potter
31288d6545 r2336: Add another conversion function to allow union arms that contain structures
not pointers to structures.  Do some renaming of hand-written functions
as a result.

Include lsa interface before samr interface as samr depends on some lsa
structures.

Build up a nice hashed index of interfaces, functions, structs and
unions.

Add test for samr_Connect5() function which contains a union.
(This used to be commit 30f068164a)
2007-10-10 12:58:44 -05:00
Tim Potter
d203c7899d r2335: Zero function parameter struct so we can do a bit more testing. To be removed later.
Generate more stub code for union arms.
(This used to be commit f8a14e808e)
2007-10-10 12:58:44 -05:00
Stefan Metzmacher
ce694e7051 r2328: add the start of a new system and protocol
independent socket library.

this is not used, but compiled currently

there're maybe some api changes later...

metze
(This used to be commit de4447d7a5)
2007-10-10 12:58:44 -05:00
Stefan Metzmacher
360f125f25 r2326: remove definition and usage of struct socket_context
metze
(This used to be commit 1854907da8)
2007-10-10 12:58:44 -05:00
Tim Potter
cff1f3e8a9 r2325: Generate conversion stubs for IDL unions.
(This used to be commit a06727b792)
2007-10-10 12:58:44 -05:00
Tim Potter
12b29d8bb7 r2324: Add hand-written versions of functions from misc.idl.
(This used to be commit d6876701cc)
2007-10-10 12:58:44 -05:00
Tim Potter
6c4a789d60 r2323: More tweaks to get things building again.
Now to get unions working as they are currently broken.
(This used to be commit 8072d7f1a4)
2007-10-10 12:58:44 -05:00
Tim Potter
6f2fb2feb4 r2322: More renames of autogenerated functions so they all have approximately
the same signature.

Start to handle structures with no pointers.
(This used to be commit c1dc984268)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
a560d554bd r2321: add complately untested LDAP server start
based on volker's patch

this is compiled by default but not started by default

metze
(This used to be commit 5387bc423d)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
17bdcc9056 r2320: add my copyright
metze
(This used to be commit 45b77064bf)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
59b0902d08 r2319: let event_merge_contexts() return a pointer to the final context
metze
(This used to be commit 71aa5eeea7)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
d5b119e0bf r2318: - remove the --with-ads option
- LDAP and KRB5 support are independend in samba4

- make the krb5 tests more readable with reformat

metze
(This used to be commit 75b393275d)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
ceb43e86a7 r2315: change format
metze
(This used to be commit 9177cd4285)
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
6de405f71e r2314: fix compiler warning
metze
(This used to be commit 75c3108955)
2007-10-10 12:58:43 -05:00
Andrew Bartlett
9d3f614ea4 r2313: Make these attributes case insensitive in the default provision.ldif
Andrew Bartlett
(This used to be commit e7115c6b95)
2007-10-10 12:58:42 -05:00
Andrew Tridgell
43acd52ed9 r2310: fixed some broken if statements in handling --with-krb5
they did not handle the fact that FOUND_KRB5 was not set at all at this point
(This used to be commit d8c97ed02c)
2007-10-10 12:58:42 -05:00
Andrew Tridgell
179cfe5596 r2309: make loadparm handling much more consistent, by using do_parameter()
to process init_globals(). This also allows all global options to be
set using lp_set_cmdline() or --option

a side effect is that init_globals() is slower. If this turns out to
be a problem we can try a different approach.
(This used to be commit ccfc2106a0)
2007-10-10 12:58:42 -05:00
Andrew Tridgell
9922a795d4 r2308: make talloc_vasprintf() available outside talloc.c
(This used to be commit a3a15f9d1a)
2007-10-10 12:58:42 -05:00