1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

2103 Commits

Author SHA1 Message Date
Stefan Metzmacher
778cf6d92b r2851: don't destroy the gensec context it's used for sign and seal
check the result of ldap_receive()

metze
2007-10-10 12:59:38 -05:00
Stefan Metzmacher
d02fab41f8 r2850: - check for GENSEC_WANT_SEAL in gensec_unseal_packet()
- pass functions to the subcontext in spnego

metze
2007-10-10 12:59:38 -05:00
Andrew Tridgell
391b09dad1 r2836: removed a couple of unused variables 2007-10-10 12:59:38 -05:00
Andrew Tridgell
db1ed5675a r2833: - added a call to SamrQueryGroupMember for every group, and fix the
IDL so this works (the previous IDL was bogus)

- changed a hyper to uint64 after looking at output on cascade on sparc
2007-10-10 12:59:37 -05:00
Volker Lendecke
e9fa997fd7 r2831: // style comments are not supported by pure C preprocessors. Please DONT use
them. This includes idl files.

Volker
2007-10-10 12:59:37 -05:00
Volker Lendecke
d9f3c4e301 r2830: // style comments are not supported by pure C preprocessors. Please DONT use
them. This includes idl files.

Volker
2007-10-10 12:59:37 -05:00
Stefan Metzmacher
0b46dc6f4b r2829: REALM and netbiosname are always uppercase
dnsname and dnshostname always lowercase

metze
2007-10-10 12:59:37 -05:00
Stefan Metzmacher
a8f2fe0ff0 r2825: fix the build
this function names are unsed elsewhere in the code too

metze
2007-10-10 12:59:37 -05:00
Simo Sorce
3af61cb6cd r2820: complete the parsing routing with correct support for escaped chars
clean up simple_ldb functions
2007-10-10 12:59:37 -05:00
Volker Lendecke
73adc1f357 r2818: On AIX, for some reason pidl fails in dcom.idl:29. The only thing
is a /* style comment. Try //.

Volker
2007-10-10 12:59:37 -05:00
Tim Potter
bc5165e40a r2817: Get winreg_GetKeySecurity() working but use data blob instead of
security descriptor.
2007-10-10 12:59:36 -05:00
Stefan Metzmacher
ae4b99d15c r2816: fix 'Default-First-Site-Name' dn
metze
2007-10-10 12:59:36 -05:00
Simo Sorce
1bc5a94488 r2815: add some more docs
add a nearly complete rfc conformat dn parsing function
2007-10-10 12:59:36 -05:00
Andrew Tridgell
036e953fac r2808: added auto-detection of unix user and groups names during provision. 2007-10-10 12:59:36 -05:00
Tim Potter
c09f0f355b r2807: OK I think winreg_EnumValue() finally works. The previous version
didn't work with non-NULL registry value names.

Update testsuite to enumerate all keys and values two levels deep.
2007-10-10 12:59:36 -05:00
Tim Potter
dc43666135 r2806: Add winreg.i to dependencies for dcerpc.i 2007-10-10 12:59:36 -05:00
Tim Potter
5fd3c12d4f r2805: Handle NULL pointers when converting structures to Python. All the
test cases up till now haven't come across them yet!
2007-10-10 12:59:36 -05:00
Andrew Tridgell
e335cd4933 r2804: - setup some reasonable default SAM to unixName mappings in the provisioning.
- enable the unixuid module by default on all backends
2007-10-10 12:59:36 -05:00
Andrew Tridgell
f522728728 r2803: allow unixuid module to work with foreign security principles 2007-10-10 12:59:35 -05:00
Andrew Tridgell
f5560f961d r2802: a better provisioning script 2007-10-10 12:59:35 -05:00
Tim Potter
bb1be78197 r2801: Wrapped functions that return a DOS error code can return DCERPC
faults if they are badly formed.  Handle this by checking the value of
NTSTATUS as well as WERROR.
2007-10-10 12:59:35 -05:00
Andrew Tridgell
e6ecd31be8 r2800: removed the warning about using the posix ntvfs handler, as it is now
considerably more complete than the simple handler
2007-10-10 12:59:35 -05:00
Andrew Tridgell
5045482b14 r2799: removed one last occurance of torture_ldb_alloc() 2007-10-10 12:59:35 -05:00
Andrew Tridgell
c3dfa7e828 r2798: get rid of a unnecessary static 2007-10-10 12:59:35 -05:00
Andrew Tridgell
5f5b04196c r2797: don't free the server_info before using it for anonymous connections 2007-10-10 12:59:35 -05:00
Andrew Tridgell
cd43def6ce r2796: - changed ldap attributes "UnixID" to "unixID" and "UnixName" to "unixName" to be more ldap traditional
- register the unixuid module as all 3 ntvfs backend types, as it doesn't care what type of backend
  it filters
2007-10-10 12:59:34 -05:00
Tim Potter
12a3f75c1c r2795: Split status code constants into a separate file. 2007-10-10 12:59:34 -05:00
Andrew Tridgell
78b67d19b9 r2794: a very simple version of the unixuid NTVFS pass-thru module. In
conjunction with the posix backend this gives us a way to correctly
setup the unix security context in Samba4.

I chose the following method to determine the unix uid's and gid's to
use given the list of SIDs from the login process

 - look for a "UnixID" field in the sam record. If present, then use it
   (check if the record is of the right type as well)

 - if UnixID is not present, then look for the "UnixName" sam
   field. If it is present then use getpwnam() or getgrnam() to find
   the unix id.

 - if UnixID and UnixName are not present, then look for a unix
   account of the right type called by the same name as the sAMAccountName field.

 - if none of the above work then fail the operation with NT_STATUS_ACCESS_DENIED

obviously these steps only work well with a local SAM. It will need to
be more sophisticated in future.

I did not put any cache in place at all. That will need to be added
for decent performance.
2007-10-10 12:59:34 -05:00
Andrew Tridgell
8373bfcdec r2793: fixed the handling of primaryGroupID in auth_sam. There were two bugs,
the first was it didn't pass primaryGroupID as an attributed it
wanted, the second was it didn't cope with primaryGroupID not being
present.
2007-10-10 12:59:34 -05:00
Andrew Tridgell
1246f80d80 r2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),
so talloc now doesn't contain any ldb specific functions.

allow NULL to be passed to a couple more talloc() functions
2007-10-10 12:59:34 -05:00
Andrew Tridgell
6c563887f1 r2791: got rid of talloc_unreference() and instead created talloc_unlink(),
which is much clearer and simpler to use. It removes a specific parent
from a pointer, no matter whether that parent is a "reference" or a
direct parent. This gives complete control over the free process.
2007-10-10 12:59:34 -05:00
Tim Potter
294d1ae35c r2790: Add code to generate WERROR exceptions. Arrange inclusion of autogenerated
interface files to divvy them up into pipes that return WERRORs and pipes
that return NTSTATUS values.
2007-10-10 12:59:34 -05:00
Simo Sorce
a34ba8dafe r2789: fix compile 2007-10-10 12:59:34 -05:00
Andrew Tridgell
1de2207061 r2788: prevent a memory leak in the pvfs search backend 2007-10-10 12:59:33 -05:00
Andrew Tridgell
ad5a5ea08d r2787: force masktest to use RAW_SEARCH_BOTH_DIRECTORY_INFO so it can obtain the short name 2007-10-10 12:59:33 -05:00
Andrew Tridgell
11c852170b r2786: - match on both long and short name for search posix backend
- a final name component of . is illegal
2007-10-10 12:59:33 -05:00
Andrew Tridgell
6c46e4622a r2785: call init_iconv() in smbtorture to ensure we have no memory allocated
when a test started, thus making leak detection easier
2007-10-10 12:59:33 -05:00
Andrew Tridgell
ee065ae7f9 r2784: - fixed alignment of ascii directory listings
- fixed minimum parameter size for ascii qpathinfo call
2007-10-10 12:59:32 -05:00
Andrew Tridgell
9a04664531 r2783: got rid of the unused remote architecture detection code 2007-10-10 12:59:32 -05:00
Tim Potter
9250f745ad r2782: Reformat IDL for winreg_EnumValue() 2007-10-10 12:59:32 -05:00
Tim Potter
cc646f73b8 r2781: Got winreg_EnumValue() working. Check it in so I don't break it trying
to clean it up.  (-:
2007-10-10 12:59:32 -05:00
Tim Potter
c9e96038f8 r2780: Add conversion routines for DATA_BLOB. I'm not convinced that DATA_BLOB's
should be treated as scalar types though.
2007-10-10 12:59:32 -05:00
Tim Potter
35ff140b43 r2777: Correctly abort if an idl file fails to parse. Bloody perl... 2007-10-10 12:59:32 -05:00
Andrew Tridgell
8d879cf54c r2776: if there are no wildcard characters then use StrCaseCmp()
note that this is not just an optimisation, it fixes a rare edge case
when LANMAN1 is negotiated
2007-10-10 12:59:32 -05:00
Andrew Tridgell
bae2baeb02 r2775: rewrote our ms_fnmatch code to be much more efficient, and to exactly
match w2k behaviour for older negotiated protocols.
2007-10-10 12:59:32 -05:00
Andrew Tridgell
630fefb24a r2774: get rid of the lanman specific code in masktest, and add a -l option 2007-10-10 12:59:31 -05:00
Andrew Tridgell
06c58ad221 r2773: allow zero sized array talloc 2007-10-10 12:59:31 -05:00
Tim Potter
b63a0ef0d4 r2767: Get rid of some unnecessary %s formatting. 2007-10-10 12:59:31 -05:00
Tim Potter
37af942d08 r2766: Test OpenKey, QueryInfoKey, EnumKey, CloseKey functions.
The IDL for EnumValue is wrong - can't figure it out right now.
2007-10-10 12:59:31 -05:00
Tim Potter
6f3f6de058 r2765: Allow functions containing WERROR values to be compiled.
Add winreg.i to list of extensions.
2007-10-10 12:59:31 -05:00