1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

815 Commits

Author SHA1 Message Date
Andrew Tridgell
cec1bc8fd7 r507: the new ldb code will use talloc_free() a lot, so I have made
talloc_free() O(1) in preparation. This also halves the number of
malloc() calls and increases our internal consistency checking,
without breaking valgrind testing.
(This used to be commit 2331d4e76e)
2007-10-10 12:51:46 -05:00
Andrew Tridgell
9c07ce7aa4 r506: got rid of unused function secrets_get_trusted_domains()
(This used to be commit bb74a94e26)
2007-10-10 12:51:46 -05:00
Andrew Tridgell
9261ceb89e r504: fixed a bad call to list_union()
(This used to be commit 4404056cd5)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
722e301591 r503: we don't need to include ldb_parse.h any more
(This used to be commit 85e57684b4)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
d8ce7c6a2a r502: modified ldb to allow the use of an external pool memory
allocator. The way to use this is to call ldb_set_alloc() with a
function pointer to whatever memory allocator you like. It includes a
context pointer to allow for pool based allocators.
(This used to be commit 3955c482e6)
2007-10-10 12:51:45 -05:00
Stefan Metzmacher
3aa278b873 r491: regtree and gregedit also depend on LIBCMDLINE (popt stuff)
metze
(This used to be commit ace939a588)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
232bc1503f r490: - expanded the test suite to test modify and delete operations
- made yet another attempt to make ldb const clean.

- "make test" now runs both the tdb and ldap backend tests, and run the ldbtest utility
  with and without indexing

- added prototypes in ldb.h for ldb_msg_*() public functions
(This used to be commit 01e8740676)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
af66c31e44 r476: i forgot the argument to get_time_zone()
(This used to be commit 34ff18839c)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
b4f94f5afa r469: considerably improved the ChangePasswordUser3() IDL thanks to an idea from abartlet
(This used to be commit 5f30c3b077)
2007-10-10 12:51:45 -05:00
Andrew Tridgell
2c367686fc r468: fixed timegm() on broken systems
(This used to be commit a3d639d04f)
2007-10-10 12:51:45 -05:00
Stefan Metzmacher
6a8355a628 r467: hopefully get the buildfarm compiling fine now...
metze
(This used to be commit d15f0e18bb)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
1b3bbc7d44 r466: implemented samr_OpenDomain() and samr_GetDomPwInfo() server side calls
if you take a look at samr_GetDomPwInfo() then you will get a fairly good idea
of what I am planning for the database oriented SAMR server implementation.
(This used to be commit bba0044a51)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
d2ea763761 r465: we need common.h in two more rpc server pipes
(This used to be commit d96b68169a)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
21e6b1531b r464: a big improvement to the API for writing server-side RPC
servers. Previously the server pipe code needed to return the RPC
level status (nearly always "OK") and separately set the function call
return using r->out.result. All the programmers writing servers
(metze, jelmer and me) were often getting this wrong, by doing things
like "return NT_STATUS_NO_MEMORY" which was really quite meaningless
as there is no code like that at the dcerpc level.

I have now modified pidl to generate the necessary boilerplate so that
just returning the status you want from the function will work. So for
a NTSTATUS function you return NT_STATUS_XXX and from a WERROR
function you return WERR_XXX. If you really want to generate a DCERPC
level fault rather than just a return value in your function then you
should use the DCESRV_FAULT() macro which will correctly generate a
fault for you.

As a side effect, this also adds automatic type checking of all of our
server side rpc functions, which was impossible with the old API. When
I changed the API I found and fixed quite a few functions with the
wrong type information, so this is definately useful.

I have also changed the server side template generation to generate a
DCERPC "operation range error" by default when you have not yet filled
in a server side function. This allows us to correctly implement
functions in any order in our rpc pipe servers and give the client the
right information about the fault.
(This used to be commit a4df5c7cf8)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
73744d1ed6 r463: build ldb with debugging when standalone
(This used to be commit 77269e7ad6)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
d6f20f8e92 r462: added an explanation about the rather complex ltdb_key() function
(This used to be commit 894e44022d)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
7ab448ae67 r459: added an initial provision.ldif - this is temporary, and needs to be
replaced with a more sophisticated provisioning system
(This used to be commit 86604bef23)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
8db18a0775 r458: this is the (very primitive) beginnings of a SAMR server for
Samba4. I'm committing this now so I can get comments on the approach.

Note that you need to do something like this to initialise the SAM db:

 edit script/provision.pl
 script/provision.pl > provision.ldif.out
 bin/ldbadd /path/to/private/sam.ldb provision.ldif.out
(This used to be commit e2002e40a5)
2007-10-10 12:51:44 -05:00
Andrew Tridgell
af48da52bf r457: added some more samr tests to help me work out the right error codes
in our new samr server
(This used to be commit 0f25031114)
2007-10-10 12:51:43 -05:00
Andrew Tridgell
208e09747c r456: - added -i option to ldbsearch
- fixed sorting bug in ldb index handing
(This used to be commit cdd48e2b9b)
2007-10-10 12:51:43 -05:00
Andrew Tridgell
b96695ca23 r454: allow a non-URL form of a filename to be used in ldb_connect(). This
makes it a little easier to work with the ldb tools
(This used to be commit 03df31cef0)
2007-10-10 12:51:43 -05:00
Andrew Tridgell
1cc8db0132 r453: added a comment about indexing on objectclass
(its usually a bad idea)
(This used to be commit f88760c3cc)
2007-10-10 12:51:43 -05:00
Andrew Tridgell
cd16ca9876 r452: move from first-fit to best-fit in tdb record allocation. For a
situation where we are continually increasing the size of a record
(such as ldb index records) this reduces the resulting tdb size by a
factor of over 100x, due to reductions in fragmentation. It appears to
have no noticable effect on the speed in other cases.
(This used to be commit b61d7f8bbc)
2007-10-10 12:51:43 -05:00
Andrew Bartlett
d8bb3d81a6 r451: More NTLMSSP work.
The work here is trying to get the LM_KEY option for NLTMSSP
operating, however until that functions properly, it is now controlled
by some new smb.conf options, defaulting off.

Andrew Bartlett
(This used to be commit c63eb35b45)
2007-10-10 12:51:43 -05:00
Andrew Bartlett
63a41d7d4d r448: Fix 'auth' in Samba4, by making 'auth methods' a normal smb.conf
paramter, without special links to other variables.

When we get 'server role' ideas back into Samba4, we can fix this properly.

The default is:

guest, sam_ignoredomain

which is the expected behaviour for a stand-alone server.

Andrew Bartlett
(This used to be commit 56ebc4275f)
2007-10-10 12:51:43 -05:00
Andrew Tridgell
cac54feea8 r445: fixed the bind_nak code
(This used to be commit f3799e7720)
2007-10-10 12:51:42 -05:00
Andrew Tridgell
78aa8f1814 r444: - added the beginnings of a ldb test suite and benchmark
- updated the test slapd config to use bdb and indexing
(This used to be commit 7ad0858c06)
2007-10-10 12:51:42 -05:00
Andrew Bartlett
9f084101dd r443: Update Samba4 to the auth and NTLMSSP code from Samba3.
Not all the auth code is merged - only those parts that are actually
being used in Samba4.

There is a lot more work to do in the NTLMSSP area, and I hope to
develop that work here.  There is a start on this here - splitting
NTLMSSP into two parts that my operate in an async fashion (before and
after the actual authentication)

Andrew Bartlett
(This used to be commit 5876c78806)
2007-10-10 12:51:42 -05:00
Andrew Tridgell
585d87a959 r442: fixed some uninitialised variables pointed out by gcc -O3
(This used to be commit ff31cfb941)
2007-10-10 12:51:42 -05:00
Andrew Tridgell
9c92ac995d r441: added an example of how to use the remote rpc interface
(This used to be commit 62f59d1180)
2007-10-10 12:51:42 -05:00
Andrew Tridgell
29bc1f5c60 r437: fixed handling of a corner case with multi-valued indexing
(This used to be commit b386121856)
2007-10-10 12:51:38 -05:00
Andrew Tridgell
3c117a4843 r436: fixed indexing of objectclass with subclasses
(This used to be commit 4d92e6f79f)
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 f2bf06f25c)
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 089f6f063f)
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 cd609eb2fe)
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 3e911db7c2)
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 d49f7a6a0d)
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 7c53e05b48)
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 6658e75358)
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 ddf6a575ff)
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 2d8772ec96)
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 e878232926)
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 891653e7d4)
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 c8a49a7e00)
2007-10-10 12:51:36 -05:00
Andrew Tridgell
a00c266702 r387: more C++ friendly changes
(This used to be commit ac0c525a8b)
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 37221b81f1)
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 bbc15d6f84)
2007-10-10 12:51:36 -05:00
Tim Potter
b0b97592be r382: More C++ friendliness fixes.
(This used to be commit e96f3a2005)
2007-10-10 12:51:36 -05:00
Andrew Tridgell
6411aa483f r381: make the code more C++ friendly
(This used to be commit 8acecc7f27)
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 b5cb5a1e62)
2007-10-10 12:51:35 -05:00