1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

23120 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
4b6ce8efc0 s4:fix allocated control OIDs for "password_hash" LDB module
The password hash module controls overlapped others. Sorry, but the
"schema_samba4.ldif" hasn't been kept up-to-date.
2010-06-13 18:35:19 +02:00
Jelmer Vernooij
7b7213f1ee s4-provision: Use logger in provision backends. 2010-06-13 18:19:03 +02:00
Jelmer Vernooij
51058213cb s4-test: Use smb.conf path set in environment rather than using
command-line options.

This is the first step towards supporting custom test runners.
2010-06-13 18:19:03 +02:00
Jelmer Vernooij
46037a8160 Remove unused version options for subunitrun. 2010-06-13 18:19:03 +02:00
Jelmer Vernooij
74ed48aa1c Friendlier message. 2010-06-13 18:19:03 +02:00
Jelmer Vernooij
d9d0d54475 upgradeprovision: Use logging infrastructure. 2010-06-13 18:19:03 +02:00
Jelmer Vernooij
3552ad3ab1 upgrade: Properly cancel/commit transactions in a couple more places. 2010-06-13 18:19:03 +02:00
Jelmer Vernooij
956a256faa s4-python: Start using standard python logging infrastructure rather
than simple messaging callbacks.
2010-06-13 18:19:03 +02:00
Matthias Dieter Wallnöfer
731b4469cb s4:dcesrv_samr_GetGroupsForUser - return error code if a SID wasn't found
This shouldn't happen since SIDs are mandatory for security objects
2010-06-12 17:50:52 +02:00
Matthias Dieter Wallnöfer
a67fa2db3b s4:dcesrv_samr_QueryGroupMember/GetMembersInAlias - unify the structure
Mostly cosmetic fixes
2010-06-12 17:45:14 +02:00
Matthias Dieter Wallnöfer
890d590e51 s4:password_hash LDB module - this does really deactivate the MS LAN manager hash
Previously, only the conversion from cleartext to the LM hash was deactivated,
and not when the user specified it directly through "dBCSPwd".
2010-06-12 16:45:49 +02:00
Matthias Dieter Wallnöfer
3e98262c71 s4:password_hash LDB module - fix comment 2010-06-12 16:45:49 +02:00
Matthias Dieter Wallnöfer
4d68147160 s4:torture - SAMR testsuite - now we do support "GetAliasMembership" as expected 2010-06-12 16:45:49 +02:00
Matthias Dieter Wallnöfer
d2c25e1b11 s4:dcesrv_samr_GetAliasMembership - provide a correct implementation
We could also have no valid SID specified at all and also then we have to
return an empty array with "NT_STATUS_OK". This shows the torture testsuite.
2010-06-12 16:45:48 +02:00
Matthias Dieter Wallnöfer
4a8ee9a333 s4:dcesrv_samr_EnumDomainGroups/Aliases - when we don't get a SID then the database is corrupted
Group/User/Alias entries do always have a SID (it's a mandatory attribute in the
SAM directory)!
2010-06-12 16:45:48 +02:00
Matthias Dieter Wallnöfer
4659b3c4fd s4:dcesrv_samr_QueryAliasInfo - return "NT_STATUS_NO_SUCH_ALIAS" when it wasn't found 2010-06-12 16:45:48 +02:00
Matthias Dieter Wallnöfer
d2099a1def s4:dcesrv_samr_QueryGroupInfo - make it more like "QueryAliasInfo" 2010-06-12 16:45:48 +02:00
Matthias Dieter Wallnöfer
776eb25ef7 s4:dcesrv_samr_QueryUserInfo - minor fixes
Return  "NT_STATUS_NO_SUCH_USER" when user account doesn't exist.
2010-06-12 16:45:47 +02:00
Matthias Dieter Wallnöfer
cdecae6c03 s4:dcesrv_samr_QueryDomainInfo - allocate the "info" structure only when really needed
That means the allocation should move after the lookup (as it is on
"QueryUserInfo"). Return "NT_STATUS_NO_SUCH_DOMAIN" on an invalid domain.
2010-06-12 16:45:47 +02:00
Matthias Dieter Wallnöfer
0171f714b4 s4:dcesrv_samr_EnumDomainGroups - mostly small fixes 2010-06-12 16:45:47 +02:00
Matthias Dieter Wallnöfer
f2c3d39e72 s4:dcesrv_samr_EnumDomainAliases - return an empty array also when no entry was returned 2010-06-12 16:45:46 +02:00
Matthias Dieter Wallnöfer
5a1cb7029c s4:dcesrv_samr_EnumDomainAliases - mostly small fixes
The biggest change consists in the implementation of the Windows Server
return size formula MIN(*r->out.num_entries, 1+(r->in.max_size/SAMR_ENUM_USERS_MULTIPLIER).
2010-06-12 16:45:46 +02:00
Matthias Dieter Wallnöfer
84bda98066 s4:dcesrv_samr_EnumDomainUsers - make this call look more similar to "EnumDomainGroups" and "EnumDomainAliases"
That means that the lookup is now also done by "samdb_search_domain" to be more
consistent.
2010-06-12 16:45:46 +02:00
Matthias Dieter Wallnöfer
bbb0b31911 s4:ldif_read_prefixMap - don't cause memory leaks on error conditions 2010-06-12 16:45:45 +02:00
Andrew Bartlett
8d8678fcfd s4:dsdb Allow calling dsdb_convert_object_ex() directly
This will allow the libnet_vampire code to manually convert individual
schema objects.

Andrew Bartlett
2010-06-12 11:19:19 +10:00
Andrew Bartlett
72486a6dd1 s4:dsdb Add debug 2010-06-12 11:19:13 +10:00
Andrew Bartlett
088d5b76ca s4:dsdb Simplfy match of objectclass in dsdb_schema_set_el_from_ldb_msg
There is no need to do a full ldb_match_msg() for a simple case
insensitive string.

Andrew Bartlett
2010-06-12 11:18:41 +10:00
Andrew Bartlett
57b6979ad0 s4:provision Allow both additional and override prefixmaps in Schema
The idea here is to allow some callers to specify a new prefixMap that
will override the values loaded from the prefixMap.txt.

Andrew Bartlett
2010-06-12 11:18:36 +10:00
Andrew Bartlett
6336f24475 s4:dsdb Allow a binary prefix map to be specified in the LDIF
This allows it to be specified in either binary or as a string.

Andrew Bartlett
2010-06-12 11:17:59 +10:00
Andrew Bartlett
d6f5c1ace2 s4:dsdb Provide a function to convert from DRS prefix maps to the LDB prefixmap
This allows us to push a prefixmap directly into the schema we
generate in the provision code.

Andrew Bartlett
2010-06-12 11:17:22 +10:00
Andrew Bartlett
e82836467c s4:dsdb Add more debugs to help track down failures to parse the prefixmap 2010-06-12 11:17:14 +10:00
Andrew Bartlett
c6bf8e4cad s4:dsdb Put back the reference and set_attributes in dsdb_reference_schema
I'm not sure why I removed these in fe3e1af901c970f738bee92baac5d7d4f5736e17

Andrew Bartlett
2010-06-12 11:16:49 +10:00
Kamen Mazdrashki
c65eb4852c s4/test-libnet: Re-align code a bit - more readable this way IMO 2010-06-11 17:46:36 +03:00
Kamen Mazdrashki
9baa73053e s4/test-libnet: Refactor test_group_create() a little to:
- Close unused policy handle for created group
- re-align code - it is more readable this way IMHO
2010-06-11 17:46:35 +03:00
Kamen Mazdrashki
6eecb968cb s4/test-libnet: Refactor test_user_create() little bit to:
- fix a flaw that user RID is not returned in case
  user is recreated
- close unused policy handle to created user
- do not take into account the result from
  test_samr_close_handle - we don't case
2010-06-11 17:46:35 +03:00
Kamen Mazdrashki
a735c1ade2 s4/test-libnet: add few comments for utility functions 2010-06-11 17:46:35 +03:00
Kamen Mazdrashki
84fb3ed8a5 s4/test-libnet: Move LSA close handle function to a common location 2010-06-11 17:46:34 +03:00
Kamen Mazdrashki
8714f130e5 s4/test-libnet: remove unused code
Pre-connecting SAMR and LSA pipes is implemented in
test_libnet_context_init() function
2010-06-11 17:46:34 +03:00
Kamen Mazdrashki
7168b1c99f s4/test-libnet: Fix compile-time warning 2010-06-11 17:46:34 +03:00
Nadezhda Ivanova
e3c95940cd Adjusted ACL tests to use encripted connection.
This way we get rid of the conditional if.Samba checks, because users are
successfully created and enabled.
2010-06-11 17:22:21 +03:00
Matthias Dieter Wallnöfer
b61fa4b676 s4:rootdse LDB module - use LDB result constants 2010-06-11 10:19:19 +02:00
Matthias Dieter Wallnöfer
93fe926842 s4:passwords.py - set the "dSHeuristics"
As per Nadia's request and abartlet's suggestion the test now also sets the
"dSHeuristics" attribute properly to be able to perform the tests also against
Windows without further configuration.

The code has the neat feature that it undoes the change and resets the
behaviour as it was before.
2010-06-11 10:04:50 +02:00
Matthias Dieter Wallnöfer
61976e4fcf s4:passwords.py - use "self" before "enable_account" to make really sure which LDB connection should be used 2010-06-11 10:04:19 +02:00
Matthias Dieter Wallnöfer
315602f845 s4:ldap.py - check how the directory server behaves when the 'distinguishedName' attribute wasn't set correctly
(On add operations the server does completely ignore it and uses the "header"
DN)
2010-06-11 09:19:02 +02:00
Matthias Dieter Wallnöfer
ace9bd6560 s4:ldap.py - check if the "name" of an entry was really ignored 2010-06-11 09:17:08 +02:00
Matthias Dieter Wallnöfer
4d3362776f ldb:ldb_sqlite3 backend - remove a warning which has already been resolved 2010-06-11 08:52:12 +02:00
Matthias Dieter Wallnöfer
155a672567 ldb:ldb_sqlite3 backend - remove checks which are now done elsewhere
(In SAMBA LDB modules)
2010-06-11 08:50:36 +02:00
Jelmer Vernooij
4690ebf0f4 Add missing stub functions. 2010-06-11 01:47:55 +02:00
Jelmer Vernooij
c446fbc3bf s4-python: Fix formatting. 2010-06-11 01:47:55 +02:00
Günther Deschner
bcc4383ef2 s4-smbtorture: rework internals of RPC-SPOOLSS-ACCESS testsuite.
Guenther
2010-06-11 00:31:17 +02:00