1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

56860 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
ba7707176d s4:winsdb - Substitute LDB result numbers with constants 2009-10-16 14:06:24 +02:00
Matthias Dieter Wallnöfer
441f0326be s3: Try to fix the build on Solaris & AIX regarding the password change reject reason 2009-10-16 12:27:57 +02:00
Kamen Mazdrashki
421191a443 s4/drs(tort): prefixMap unit test initial implementatoin 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
784e0c199e s4/drs: prefixMap module initial definition 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
47f30fd3e7 s4/drs(tort): fix compile time warning 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
1d3342e9fa s4/drs(tort): _drs_util_verify_attids() to verify ATTIDs in objects received 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
e3b707da94 s4/drs(tort): drs_util_DsAttributeId_to_string() function 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
8631548f12 s4/drs(tort): _drs_ldap_attr_by_oid() implementation
Utility function to be used to fetch Attribute name and DN
giving attribute OID
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
8639ba2237 s4/drs(tort): ignore drs/proto.h file 2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
3c3f66f0df s4/drs(tort): oid_from_attid() reference implementation
Decode Attribute OID using prefixMap and
ATTID received during replication

Based on MS documentation. See MS-DRSR.pdf - 5.16.4
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
6a680cea6a s4/drs(tort): TORTURE_DRS torture module - initial implementation
Drsuapi tests module registers two suites:
 - DRS-RPC - tests to be executed against remote machine
 - DRS-UNIT - unit test for internal testing
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
40a8a22684 s4/drs: Propagate redefinition of drsuapi_DsReplicaOID into code base
The biggest change is that 'oid' field is transmited in binary format.
Also the field name is changed to 'binary_oid' so that
field format to be clear for callers.

After those changes, Samba4 should work the way it works before -
i.e. no added value here but we should not fail when
partial-oid is part of prefixMap transmited from Win server.

Also, thre is a bug in this patch - partial-binary-OIDs are
not handled correctly. Partial-binary-OIDs received during
replication will be encoded, but not handled correctly.
2009-10-16 12:54:14 +03:00
Kamen Mazdrashki
7e8fb4ad06 s4/drs(NDR): Print implementation for drsuapi_DsReplicaOID
Custom ndr_print functions is implemented so that transmited
partia-binary-oid to be printed both in hex and
partial-oid formats
2009-10-16 12:54:13 +03:00
Kamen Mazdrashki
4bfd132b08 s4/drs(NDR): Remove push/pull code for drsuapi_DsReplicaOID struct
New structure definition is automarshaled so custom marshaling
code is not used anymore
2009-10-16 12:54:13 +03:00
Kamen Mazdrashki
f11cdc19d1 s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functions 2009-10-16 12:54:13 +03:00
Kamen Mazdrashki
cb71e8a731 s4/drs(idl): Regenerate idl 2009-10-16 12:54:13 +03:00
Kamen Mazdrashki
cf51787382 s4/drs(idl): Redefine drsuapi_DsReplicaOID in drsuapi.idl
Structure redefined to be more similar with OID_t structure
defined in [ref. MS-DRSR.pdf - p.496].
2009-10-16 12:54:13 +03:00
Günther Deschner
a85799d5db s3-libnetapi: add nltest tool.
Guenther
2009-10-16 10:54:55 +02:00
Günther Deschner
ca19ffde80 s3-libnetapi: add I_NetLogonControl{2} example code.
Guenther
2009-10-16 10:50:29 +02:00
Günther Deschner
d308aa3de8 s3-libnetapi: add I_NetLogonControl{2} to public headers.
Guenther
2009-10-16 10:50:28 +02:00
Günther Deschner
e31c2c7eb1 s3-libnetapi: fill in I_NetLogonControl{2}_r.
Guenther
2009-10-16 10:50:28 +02:00
Günther Deschner
e8e1d60941 s3-libnetapi: add I_NetLogonControl{2} skeleton.
Guenther
2009-10-16 10:50:28 +02:00
Günther Deschner
8bd4378ff8 s3-libnetapi: add I_NetLogonControl{2} to IDL.
Guenther
2009-10-16 10:50:27 +02:00
Andrew Tridgell
7bcc0b2966 s4-winsrepl: don't put in attributes with no elements
Empty attributes are no longer allowed by ldb. This also fixes the
error checking in winsdb_message()

This fixes the samba4.nbt.winsreplication test
2009-10-16 11:56:40 +11:00
Günther Deschner
3f80b06d9e s3-selftest: enable WINBIND-WBCLIENT against s3.
Guenther
2009-10-16 02:04:37 +02:00
Günther Deschner
612deb2699 s4-smbtorture: add very basic libwbclient testsuite.
Guenther
2009-10-16 02:04:29 +02:00
Günther Deschner
8b247f3538 s3-net: fix build warning (missing default in switch).
Guenther
2009-10-16 02:04:03 +02:00
Jeremy Allison
5cc895983d Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrind
Jeremy.
2009-10-15 16:55:40 -07:00
Andrew Tridgell
a6e4cb500b s3: fixed krb5 build problem on ubuntu karmic
Karmic has MIT krb5 1.7-beta3, which has the symbol
krb5_auth_con_set_req_cksumtype but no prototype for it.

See also http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=531635
2009-10-16 10:40:50 +11:00
Andrew Tridgell
70b020ca76 s4-pvfs: fixed mask handling for SEC_FLAG_MAXIMUM_ALLOWED
This matches the sec_access_check() code
2009-10-16 10:12:18 +11:00
Andrew Tridgell
29929a3c46 s4-torture: take privileges into account in BASE-MAXIMUM_ALLOWED
The correct answer depends on the users privileges.
2009-10-16 10:12:18 +11:00
Andrew Tridgell
068e09847a idl: added bit definition for privilege masks
When you have backup or restore privileges, you automatically get
extra access bits in ACL interpretation. This adds definitions for the
bits you get.
2009-10-16 10:12:18 +11:00
Matthias Dieter Wallnöfer
c35f18513a s4:dcerpc_server - Read the generic session key out from "dcerpc_generic_session_key"
I don't think that this code needs to exist identically on the server and on the
client side. This patch leaves it on the client side (dcerpc lib) and calls it
from the server.
2009-10-15 13:27:38 +02:00
Günther Deschner
ef194bc692 s3-spnego: fix memleak in spnego_parse_auth().
Guenther
2009-10-15 15:45:20 +02:00
Günther Deschner
449ab398f5 s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.
When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP),
we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus
failing spnego_parse_auth() completely.

By just using the shared spnego/asn1 code, we get the parsing the correct way.

Guenther
2009-10-15 14:41:22 +02:00
Matthias Dieter Wallnöfer
fb13eb7db8 s4:w32err_code.py script - put it under "scripting/bin"
I think this is a better location for this script. Since the subdirectory
"script" of "source4" contains only scripts for "make install" and "make
uninstall".
2009-10-15 12:48:20 +02:00
Karolin Seeger
6a9e88e08b s3/docs: Add missing meta data to man ldbrename.
Avoid warnings.

Karolin
2009-10-15 12:27:24 +02:00
Andrew Tridgell
d72b5a81ef s4-smb: fill in fnum as well for root_fid
This helps with the CIFS NTVFS backend, but doesn't solve all problems
2009-10-15 20:50:49 +11:00
Andrew Tridgell
bdd9dc4a84 s4-selftest: mark some CIFS backend tests as known fail
The CIFS passthru NTVFS doesn't handle some options yet (eg. root_fid)
2009-10-15 20:42:53 +11:00
Andrew Tridgell
dab799e569 s4-smbserver: fixed root_fid in nttrans create 2009-10-15 20:03:01 +11:00
Andrew Tridgell
4a4f420481 s4-libcli: fixed structure element bug in ntcreatexreadx
This one didn't matter until the root_fid changed the alignment of the
two structures.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
ffa8c45372 s4-torture: catch bad command line options
It is annoying when you mistype a command line option and aren't told.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
c5cfda9e8a s4-pvfs: implement root_fid support in posix backend
Construct the filename from the old handle and the new name.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
3c028ff88b s4-smb: declare root_fid as a file handle
In order to implement root_fid in the s4 SMB server we need to declare
it as a handle type, just as for other fnum values in SMB. This
required some extensive (but simple) changes in many bits of code.
2009-10-15 20:03:00 +11:00
Andrew Tridgell
c73ba89112 s4-pvfs: fixed handling of SEC_FLAG_MAXIMUM_ALLOWED
The CREATEX_ACCESS test shows that this is used as a bit test, not a
equality test
2009-10-15 20:02:59 +11:00
Andrew Tridgell
387e67d53f s4-ldaptest: "testgroup" is a bit too common
This failed on one of my test boxes that has a group called
"testgroup". using "testgroupXX" should be a bit better.
2009-10-15 20:02:59 +11:00
Matthias Dieter Wallnöfer
ea60b72c46 s4:ntlmssp server - use also here the new "lp_dnsdomain()" call 2009-10-15 10:32:16 +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
Björn Jacke
dc586b933d s3: fix outdated proto.h causing build error on AIX
Matthias, please check!
2009-10-15 10:27:34 +02:00
Andrew Tridgell
818d98acf1 s4-ldap: test the rDN size limit 2009-10-15 15:54:40 +11:00