1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

798 Commits

Author SHA1 Message Date
Andrew Tridgell
29bc1f5c60 r437: fixed handling of a corner case with multi-valued indexing
(This used to be commit b38612185657512419c4b3dc806cf1183e0db0cb)
2007-10-10 12:51:38 -05:00
Andrew Tridgell
3c117a4843 r436: fixed indexing of objectclass with subclasses
(This used to be commit 4d92e6f79f52ec0d580dfda2a91b4afc95838ff4)
2007-10-10 12:51:38 -05:00
Andrew Tridgell
0dad5a3427 r435: a major upgrade for ldb
- added the ability to mark record attributes as being CASE_INSENSITIVE, WILDCARD or INTEGER.

 - added the ability to support objectclass subclasses, and to search by a parent class

 - added internal support for case insensitive versus case sensitive
   indexing (not UTF8 compliant yet)

 - cleaned up a number of const warnings

 - added a number of helper functions for fetching integers, strings and doubles

 - added a in-memory cache for important database properties, supported by a
   database sequence number

 - changed some variable names to avoid conflicts with C++
(This used to be commit f2bf06f25c2e6c744817711c7bedbd1d3b52f994)
2007-10-10 12:51:38 -05:00
Stefan Metzmacher
a2b6d47390 r432: fix the linking of the reg* tools
metze
(This used to be commit 089f6f063fdd7e54c0a2a95d27bab1813fbc2307)
2007-10-10 12:51:38 -05:00
Stefan Metzmacher
4c991c6edd r425: add some comments to ugly code parts
we should take care of 'char *' and 'const char *' and DO NOT mix them!

Jelmer: please fix this

metze
(This used to be commit cd609eb2fe9303825d5562047d57fd553b2601bd)
2007-10-10 12:51:38 -05:00
Stefan Metzmacher
f517d6b7ae r424: let this code compile on every machine hopefully
metze
(This used to be commit 3e911db7c2cbcb38667f06e6b0282bce1b7991cb)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
931927d2a3 r420: added nicer names for the field bits in userinfo21
added tests for the level 23 and 25 password change methods
(This used to be commit d49f7a6a0d1895de3d654a5b46c6aec3a57fde76)
2007-10-10 12:51:37 -05:00
Stefan Metzmacher
a37c408fc4 r419: Data::Dumper is not portable
use it only for debugging in a local tree

metze
(This used to be commit 7c53e05b4874143e8e8cd0034ab5a6a986e7994c)
2007-10-10 12:51:37 -05:00
Stefan Metzmacher
405e08683d r412: as we decide to not do 3.0.2a releases anymore,
remove the generation stuff from VERSION and mkversion.sh

metze
(This used to be commit 6658e75358a82e3e6f104487d8bb19514af4e7a7)
2007-10-10 12:51:37 -05:00
Stefan Metzmacher
aa68fbab88 r411: make swig should not be the first make rule...
add make default -> all before

metze
(This used to be commit ddf6a575ff173fcf1e4898fc73459c52f554e043)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
473d669835 r392: added IDL for 3 more netlogon Delta levels, thanks to a dump from Richard Renard
(This used to be commit 2d8772ec9607c4e06bbc559b35979e27d4b988d9)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
3fe884c26c r390: added my best guess for how session keys are supposed to work when you
use NTLMSSP sign or seal at the RPC layer

It doesn't work yet, but then again neither does the old code (which
just assumed the SMB session key was used, which of course makes no
sense on a ncacn_ip_tcp connection)
(This used to be commit e8782329269bc78d36d8ca83fb7a4e38b9c6b167)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
932b0ff5f5 r389: added a test for set user info level 26 (set password extended)
thanks to Luke Howard for this test
(This used to be commit 891653e7d40f581016085e2c32e2802eea7e7ade)
2007-10-10 12:51:37 -05:00
Andrew Tridgell
24be9ddf0a r388: added IDL for 3 more set user info levels (all of which set the
password). That makes 8 ways to change a password just on the SAMR
pipe!

Thanks to Luke Howard from PADL for this.
(This used to be commit c8a49a7e004468d13f656f67eac4b7b4e1759022)
2007-10-10 12:51:36 -05:00
Andrew Tridgell
a00c266702 r387: more C++ friendly changes
(This used to be commit ac0c525a8b8a05cc275fb9f4c1dcfd749604c85f)
2007-10-10 12:51:36 -05:00
Volker Lendecke
b82b555b83 r386: Another torture test to survive.
Believe it or not, w2k3 returns ERRSRV:ERRbaduid DOS error code if you pass in
a wrong vuid. We (Samba 3) currently return NT_STATUS_NETWORK_ACCESS_DENIED.

Volker
(This used to be commit 37221b81f124887ab3cb652f237067ff4b56151e)
2007-10-10 12:51:36 -05:00
Tim Potter
75eef34a23 r383: Scripting extensions using swig. This commit includes only a (LGPL)
python interface to tdb and a rudimentary build system.

Configure with --with-python and make swig to build and append
$(builddir)/scripting/swig/python to PYTHONPATH.
(This used to be commit bbc15d6f84b6a247ae87b253752a86a38f1d6798)
2007-10-10 12:51:36 -05:00
Tim Potter
b0b97592be r382: More C++ friendliness fixes.
(This used to be commit e96f3a2005cf6f4da2ecd4670a35eab1b4f250d0)
2007-10-10 12:51:36 -05:00
Andrew Tridgell
6411aa483f r381: make the code more C++ friendly
(This used to be commit 8acecc7f27e25ab876fffffe43ae75b5f77aff77)
2007-10-10 12:51:36 -05:00
Andrew Tridgell
ee0489fff6 r380: make sure that ldbedit -a works with all tdb and LDAP backends
(This used to be commit b5cb5a1e62a4b9df6f163082498942553662436e)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
6cc392bff3 r374: allow for a policy_handle fetch using a handle type of
DCESRV_HANDLE_ANY. This is needed for operations like samr_Close()
that take any handle type.
(This used to be commit 6fbbfc4462388c4c86f9f0ddd3cdd99225512ef2)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
8882401382 r373: use a much larger default tdb hash size in ldb
(This used to be commit 54f47c45b8f828ad5ddaa630d0c1e673f2c74b7a)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
16d3528ebc r372: automatically create a fake BDC machine account and delete it
afterwards for the RPC-NETLOGON test. This makes it much simpler to
run the test and also means that it doesn't distrurb any existing
domain join you might have.
(This used to be commit feac996794d5cc16e3612fb2901668a9b1e1d274)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
2cabf613e3 r365: improved the IDL for samr_Connect5()
(This used to be commit 4b4f025504cb5b92c8b119259f1df622cd72ec7c)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
3fb30e46be r364: finally worked out the ancient samr_ChangePasswordUser() interface
yay!
(This used to be commit 0221566cf5ff7dc5ce0de9af451b935ed8615f4e)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
0d1c529cdc r363: nicer error handling in pidl
(This used to be commit cafc8a5e763834a26432c467abfe84f140bb7d80)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
6ee381d86c r362: after setting domain info query it again so we can see what attributes stick
(This used to be commit b2ebaf95b75b050ad02ca967867337cd81faa859)
2007-10-10 12:51:35 -05:00
Andrew Tridgell
2733f8cf7c r361: allow anonymous browsing
(This used to be commit 845730501e24629aa3db4698f097dd73c14bca3b)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
9e323d5db5 r360: use the STYPE_* definitions from srvsvc.idl
(This used to be commit 32707fe3c0fd7139b597fef1c2b096992e51bdc6)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
31d44e3682 r359: moved the share type definitions to srvsvc.idl
I'd like to see more protocol defininitions in the IDL files and less
in smb.h where possible.
(This used to be commit 854b875bbe447955fb0c3876f046931d0bfde06c)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
304396c892 r358: added some more annotation on the samr unknown attributes
(This used to be commit a946315193443feab786a588f371ad2a560327d4)
2007-10-10 12:51:34 -05:00
Andrew Tridgell
fd7252570b r357: added share browsing to smbclient using the SRVSVC MSRPC pipe
(This used to be commit 53ae1ddb8d974736ed305d5e4da04807f0c04332)
2007-10-10 12:51:34 -05:00
Tim Potter
3dce6f1e23 r356: Start of auto-generated client functions. Tridge can you take a look
and tell me what you think?  Output does not compile yet.
(This used to be commit 65692c9a9301329ad93628778e3d8f9188a67059)
2007-10-10 12:51:34 -05:00
Tim Potter
f3d3b3c809 r355: Fix a bunch of compiler warnings in the registry code.
(This used to be commit 0be7a866dc39e2d63c9c114d0f668287259e7c9e)
2007-10-10 12:51:34 -05:00
Tim Potter
27ce4aa829 r354: Tridge convinced me that writing some wrapper functions by hand was a
bad idea.
(This used to be commit 6eb0b17015071790fb0108b140936ac81f4c7f92)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
803b5d8aa4 r344: fixed deletion of index records
(This used to be commit 246f17cd4a7851042739574f1e07b113c44275c7)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
07882b5460 r343: added automatic reindexing of the database when the index list changes
(This used to be commit a811640ce408373a5c2c0ee2c125bd735d96d5e1)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
b394a4c2ff r336: added a -X command line option to smbtorture to enable dangerous or
possibly destructive tests. Use with care!

Added IDL and test code for samr_Shutdown() and samr_SetDsrmPassword()
(This used to be commit 84de0b7e58c69e0817b9d475de0895a54cc95927)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
493a37ba66 r335: added much better handling of servers that die unexpectedly during a
request (a dead socket). I discovered this when testing against Sun's
PC-NetLink.

cleaned up the naming of some of the samr requests

add IDL and test code for samr_QueryGroupMember(),
samr_SetMemberAttributesOfGroup() and samr_Shutdown().  (actually, I
didn't leave the samr_Shutdown() test in, as its fatal to windows
servers due to doing exactly what it says it does).
(This used to be commit 925bc2622c105dee4ffff809c6c35cd209a839f8)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
1793845e08 r327: fixed an uninitialised variable found by valgrind
(This used to be commit 10844cf925d6a8164191a6dbbcaacc7bf8179933)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
1325dea8ec r326: tweaks to the RPC-SAMR test code to allow win2003 to pass the test (for example, not filling in extra
fields in level21 setuserinfo)
(This used to be commit d06ed158f9aef94159bfc09065ca5ad0c4c99de3)
2007-10-10 12:51:33 -05:00
Andrew Tridgell
45b57a8b38 r325: added IDL and test code for samr_ChangePasswordUser3().
Also added much better handling of random password generation in the
password change test code
(This used to be commit 67ae0b2a9851c1e77fdaa9f317a83bd54950618f)
2007-10-10 12:51:32 -05:00
Andrew Tridgell
2b9fb9618a r324: - don't reseed on every password generate
- check for overflow (very unlikely) in random buffer generation
(This used to be commit 548ec1efefa6f337a362cbadae74f177774e9e29)
2007-10-10 12:51:32 -05:00
Andrew Tridgell
ced7fa4b45 r323: added rough password quality checking in generate_random_str(), so we generate passwords
that are likely to be accepted by the win2003 quality checks
(This used to be commit 5954969f278e7f23190fe7301bfdc608f480eef6)
2007-10-10 12:51:32 -05:00
Andrew Tridgell
7e6038ee00 r322: use the -C option to configure for developers (makes a huge speed difference)
(This used to be commit b8735ed55c5a4375b3b1861a2a45682227dffd4f)
2007-10-10 12:51:32 -05:00
Stefan Metzmacher
8aa6f931d6 r313: add the warning about fileaccess as user 'root'
to a README file and DEBUG(0,()) it on each tree connect

metze
(This used to be commit d52eb75107f291635afcfbe5b79d863f54349793)
2007-10-10 12:51:20 -05:00
Stefan Metzmacher
ee0588bb6f r312: let ntvfs posix backend return NT_STATUS_ACCESS_DENIED in the connect hook
and print out an error message to the debug log which say:
use 'cifs' or 'simple' as ntvfs handler
this also warns about 'root' fileaccess in the 'simple' module

the 'default' ntvfs handler is now registered by the posix backend

metze
(This used to be commit 84b3589daa60cfdd2c868d9468192b0a6e1eebae)
2007-10-10 12:51:20 -05:00
Stefan Metzmacher
7feebcb33a r311: add srvsvc and wkssvc rpc pipes to the default pipes
metze
(This used to be commit f1b1bbc5505c112cd66e07da5faa9a65407e9c07)
2007-10-10 12:51:20 -05:00
Stefan Metzmacher
7eb7b1528b r310: add missing ','
metze
(This used to be commit d0aa749667cf0d9e7c290982d2b4232c27ced706)
2007-10-10 12:51:20 -05:00
Andrew Tridgell
7f26e3ad33 r307: added IDL and test code for samr_GetDomPwInfo(), samr_SetUserInfo2(),
samr_GetBootKeyInformation() and samr_Connect3()

also added some stub IDL for samr_SetBootKeyInformation() although I
don't yet have working test code. This one is tricky, as if you get it
wrong then the target system won't boot any more :)
(This used to be commit 118b6fc292ba3257511b1b83846582013fb59b23)
2007-10-10 12:51:20 -05:00