1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

1786 Commits

Author SHA1 Message Date
Tim Potter
e135265d1d r2418: Handle a pointer to a scalar when converting a field from Python.
Handle a pointer to an array of structures when converting to Python.
2007-10-10 12:58:50 -05:00
Tim Potter
36320c6941 r2417: Add comments to the interface generator as well as some commentary in
the generated interface code.

Get rid of global variables within the perl generator code.
2007-10-10 12:58:50 -05:00
Tim Potter
fc5443af9c r2416: More argument checks. Raise an exception instead of segfaulting if a
dictionary does not contain a required key.
2007-10-10 12:58:50 -05:00
Tim Potter
0f58ffb142 r2415: Throw a TypeError exception if a scalar value doesn't have the correct
type, or the argument to a to_python function isn't a dictionary.
2007-10-10 12:58:50 -05:00
Tim Potter
e1166c2100 r2414: samr_Connect.system_name is now an array. 2007-10-10 12:58:50 -05:00
Tim Potter
9bc55de42a r2411: The other half of getting autogenerated code working using misc.idl:
use Python lists for arrays when marshaling and unmarshaling arrays.
This gets samr_SetSecurity() working.
2007-10-10 12:58:49 -05:00
Tim Potter
e822979e84 r2410: Add test for samr_SetSecurity(). 2007-10-10 12:58:49 -05:00
Tim Potter
810bce2fe5 r2409: Convert NULL pointers to Py_None, and vice versa.
This gets samr_QuerySecurity() working again.
2007-10-10 12:58:49 -05:00
Tim Potter
160dc90921 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).
2007-10-10 12:58:49 -05:00
Andrew Tridgell
fe60e899d7 r2407: extend mkproto.pl to handle smb_ucs2_t for toupper_w() 2007-10-10 12:58:49 -05:00
Andrew Tridgell
87a6c678fa r2406: fixed a couple of typos 2007-10-10 12:58:49 -05:00
Andrew Tridgell
a3fd9a911f r2405: expose unix_perms_to_wire() for use by the posix backend, in supporting the UNIX extensions 2007-10-10 12:58:49 -05:00
Andrew Tridgell
40d5cae5eb 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.
2007-10-10 12:58:48 -05:00
Andrew Tridgell
a4dcf005f3 r2403: got rid of a unnecessary mem_ctx in the simple backend 2007-10-10 12:58:48 -05:00
Andrew Tridgell
69413bdcfc r2402: to make ms_fnmatch() case-insensitive we need toupper_w() exposed 2007-10-10 12:58:48 -05:00
Stefan Metzmacher
3a9ca35116 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
2007-10-10 12:58:48 -05:00
Andrew Tridgell
e227ac1edf 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.
2007-10-10 12:58:48 -05:00
Tim Potter
04aec4c0a3 r2399: Display text description of rpc fault in debug message. 2007-10-10 12:58:48 -05:00
Tim Potter
f88996540c r2398: Import Data::Dumper module safely so it doesn't hurt the build farm. 2007-10-10 12:58:47 -05:00
Stefan Metzmacher
47e613a5a1 r2387: fix segfault
seems that [in,out,ref] vars should be initialize
the [in] and [out] part

metze
2007-10-10 12:58:47 -05:00
Andrew Tridgell
1de5aa5b1d r2386: fixed some indentation 2007-10-10 12:58:47 -05:00
Andrew Tridgell
bcf9d787d6 r2385: the gensec:krb5 test is not needed here any more, as we do it in the registration code 2007-10-10 12:58:47 -05:00
Andrew Tridgell
7478f50c2f r2384: i missed "nt status support" in my change to the new globals init code 2007-10-10 12:58:47 -05:00
Andrew Tridgell
01d66f68f6 r2383: fixed the handling of sending zero length dcerpc packets (I broke this
recently, and this broke the autoidl code)
2007-10-10 12:58:47 -05:00
Andrew Tridgell
7d3e347422 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.
2007-10-10 12:58:46 -05:00
Andrew Tridgell
03d4a7832c r2381: added a -v debugging option to ldbedit 2007-10-10 12:58:46 -05:00
Andrew Tridgell
6807d336c2 r2380: nicer error reporting in convert_string() 2007-10-10 12:58:46 -05:00
Andrew Tridgell
66f88c7d89 r2377: added a more generic way of disabling gensec subsystems. For example,
"gensec:ntlmssp=no" will disable ntlmssp.
2007-10-10 12:58:46 -05:00
Andrew Tridgell
2d710a5eb5 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
2007-10-10 12:58:46 -05:00
Stefan Metzmacher
8ade8ab65f r2365: remove MSG_NOSIGNAL
metze
2007-10-10 12:58:46 -05:00
Tim Potter
945a468105 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.
2007-10-10 12:58:46 -05:00
Tim Potter
84513e4ed1 r2358: More renaming of functions to keep things consistent. 2007-10-10 12:58:46 -05:00
Tim Potter
c8d13a809b r2357: Start coding conversion routines for security descriptors, acls and sids. 2007-10-10 12:58:45 -05:00
Stefan Metzmacher
492a00d909 r2347: merge LDAP ASN.1 fixes from trunk
metze
2007-10-10 12:58:45 -05:00
Stefan Metzmacher
56e21d0ce2 r2346: fix some minor stuff
metze
2007-10-10 12:58:45 -05:00
Tim Potter
f6978a007a r2345: Add test for samr_QuerySecurity() 2007-10-10 12:58:45 -05:00
Tim Potter
a3eac318a6 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).
2007-10-10 12:58:45 -05:00
Stefan Metzmacher
a375c6b0b1 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
2007-10-10 12:58:45 -05:00
Tim Potter
b7ef3d0a00 r2342: Remove obsolete file. 2007-10-10 12:58:45 -05:00
Andrew Tridgell
e94bec1079 r2339: my first python commit!
added command line options for binding string, domain, username and password
2007-10-10 12:58:44 -05:00
Tim Potter
30f068164a 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.
2007-10-10 12:58:44 -05:00
Tim Potter
f8a14e808e r2335: Zero function parameter struct so we can do a bit more testing. To be removed later.
Generate more stub code for union arms.
2007-10-10 12:58:44 -05:00
Stefan Metzmacher
de4447d7a5 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
2007-10-10 12:58:44 -05:00
Stefan Metzmacher
1854907da8 r2326: remove definition and usage of struct socket_context
metze
2007-10-10 12:58:44 -05:00
Tim Potter
a06727b792 r2325: Generate conversion stubs for IDL unions. 2007-10-10 12:58:44 -05:00
Tim Potter
d6876701cc r2324: Add hand-written versions of functions from misc.idl. 2007-10-10 12:58:44 -05:00
Tim Potter
8072d7f1a4 r2323: More tweaks to get things building again.
Now to get unions working as they are currently broken.
2007-10-10 12:58:44 -05:00
Tim Potter
c1dc984268 r2322: More renames of autogenerated functions so they all have approximately
the same signature.

Start to handle structures with no pointers.
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
5387bc423d r2321: add complately untested LDAP server start
based on volker's patch

this is compiled by default but not started by default

metze
2007-10-10 12:58:43 -05:00
Stefan Metzmacher
45b77064bf r2320: add my copyright
metze
2007-10-10 12:58:43 -05:00