15 years agor693: Make static
Jelmer Vernooij [Thu, 13 May 2004 16:47:32 +0000 (16:47 +0000)]
r693: Make static
(This used to be commit 30d3915c760ac5ee5e632539a3503fc7fed9cc63)

15 years agor692: Add libwinregistry
Jelmer Vernooij [Thu, 13 May 2004 16:45:01 +0000 (16:45 +0000)]
r692: Add libwinregistry
(This used to be commit 0ace3bf289777c30310a05e66fd674337413f0d8)

15 years agor691: add
Stefan Metzmacher [Thu, 13 May 2004 16:39:29 +0000 (16:39 +0000)]
r691: add
make binary_smbd
make library_libldb
make module_ntvfs_simple
style make rules which depend on make basics, so make idl proto is called by them

(This used to be commit bbec0b6c95d7d01ac36bb0820b2049db57fd2a2c)

15 years agor690: - ignore source/tags
Stefan Metzmacher [Thu, 13 May 2004 16:15:46 +0000 (16:15 +0000)]
r690: - ignore source/tags

- add support for shared libraries

- enable libldb shared lib when --enable-experimental

(This used to be commit dcef69dc54a2575e7f57d67d1983482b4ff57bdb)

15 years agor688: add --enable-experimental
Stefan Metzmacher [Thu, 13 May 2004 16:09:34 +0000 (16:09 +0000)]
r688: add --enable-experimental

use Data::Dumper for config.smb_build.dump
when --enable-debug

(This used to be commit 0fd558de796e5798279e8252a7f0d4efdd3a86e6)

15 years agor687: add newline at eof
Stefan Metzmacher [Thu, 13 May 2004 15:55:53 +0000 (15:55 +0000)]
r687: add newline at eof

(This used to be commit 38fd7c5e1a8ee5dcc0e5e6af765fb81f6f7c4111)

15 years agor686: - Add SMB_EXT_LIB_FROM_PKGCONFIG()
Jelmer Vernooij [Thu, 13 May 2004 15:37:57 +0000 (15:37 +0000)]
- Build gregedit and registry_gconf again if the required libs are found (gconf and gtk)
(This used to be commit a63b704c36f2f5b52e932b6b2c99e7d664c9bdc7)

15 years agor685: The SAM is dead! Long live the new SAM! ;-)
Andrew Bartlett [Thu, 13 May 2004 15:34:56 +0000 (15:34 +0000)]
r685: The SAM is dead!  Long live the new SAM!  ;-)

This commit kills passdb, which was only hosting the auth subsystem.

With the work tridge has done on Samba4's SAM backend, this can (and
now is) all hosted on ldb.  The auth_sam.c file now references this

You will need to assign your users passwords in ldb - adding a new line:

unicodePwd: myPass

to a record, using ldbedit, should be sufficient.  Naturally, this
assumes you have had your personal SAMR provisioning tutorial from
tridge.  Everybody else can still use the anonymous logins.

Andrew Bartlett
(This used to be commit 2aa0b55fb86648731d5f2201fa5a6aa993b7ca48)

15 years agor684: Note the fact that NTLMv2 provides a weath of futher testcases...
Andrew Bartlett [Thu, 13 May 2004 15:31:21 +0000 (15:31 +0000)]
r684: Note the fact that NTLMv2 provides a weath of futher testcases...

Andrew Bartlett
(This used to be commit d75558cdcbbb89dbe66287d7461b7abae14a8d36)

15 years agor683: Remove the trailing ; from this macro, so it can be used in an 'if' expression.
Andrew Bartlett [Thu, 13 May 2004 15:27:08 +0000 (15:27 +0000)]
r683: Remove the trailing ; from this macro, so it can be used in an 'if' expression.
(This used to be commit 3813517a8b561e7210ffc32ce861683b057d18eb)

15 years agor682: Typo fixes
Jelmer Vernooij [Thu, 13 May 2004 14:13:21 +0000 (14:13 +0000)]
r682: Typo fixes
(This used to be commit 767ba7bd52d7fa98524a553d86dca657c5290424)

15 years agor681: don't init r.out.result.v
Stefan Metzmacher [Thu, 13 May 2004 13:36:14 +0000 (13:36 +0000)]
r681: don't init r.out.result.v

(This used to be commit f7ded36699dabecf31ccaf765d667b7240822f8d)

15 years agor680: fail directly when we notice that perl is not there
Stefan Metzmacher [Thu, 13 May 2004 13:16:55 +0000 (13:16 +0000)]
r680: fail directly when we notice that perl is not there
(we fail anyway)

(This used to be commit 9f6deb7d795fbddc973e84a45ecb1273aa4f3aea)

15 years agor679: fix make install
Stefan Metzmacher [Thu, 13 May 2004 12:42:28 +0000 (12:42 +0000)]
r679: fix make install

(This used to be commit 17bb581ab617c9a1883a3a4028ddac94aa2d5980)

15 years agor678: use ./config.smb_build.pl instead of config.smb_build.pl
Stefan Metzmacher [Thu, 13 May 2004 12:40:52 +0000 (12:40 +0000)]
r678: use ./config.smb_build.pl instead of config.smb_build.pl

(This used to be commit 3de5bf894e71ce9a7a0464f2245a64822a34cc5a)

15 years agor677: fix: '$' -> '\$'
Stefan Metzmacher [Thu, 13 May 2004 12:16:35 +0000 (12:16 +0000)]
r677: fix: '$' -> '\$'

(This used to be commit 89c3780c15687c16d4607c912f71d1082690af76)

15 years agor674: use the same -I flags as before
Stefan Metzmacher [Thu, 13 May 2004 11:47:34 +0000 (11:47 +0000)]
r674: use the same -I flags as before

(This used to be commit e7c9e56a5d889497f63c65582f064e02d4442e36)

15 years agor673: disable registry_gconf for now
Stefan Metzmacher [Thu, 13 May 2004 11:32:39 +0000 (11:32 +0000)]
r673: disable registry_gconf for now

(This used to be commit 5bbf0c240730fc27b7341eb7c6891c7741640e74)

15 years agor672: disable gregedit for now
Stefan Metzmacher [Thu, 13 May 2004 10:53:52 +0000 (10:53 +0000)]
r672: disable gregedit for now

(This used to be commit 63600a2a9b2607130efe8e4336a48b5e9584d929)

15 years agor671: fix make ./include/proto.h
Stefan Metzmacher [Thu, 13 May 2004 10:45:55 +0000 (10:45 +0000)]
r671: fix make ./include/proto.h

(This used to be commit 9312b9cd611373468d5b89c9480646170a49db5b)

15 years agor670: add make everything
Stefan Metzmacher [Thu, 13 May 2004 10:42:53 +0000 (10:42 +0000)]
r670: add make everything

(This used to be commit 3f942ac521ffbb970345519775f20284be393e60)

15 years agor669: display the version on top of configure
Stefan Metzmacher [Thu, 13 May 2004 10:40:01 +0000 (10:40 +0000)]
r669: display the version on top of configure

this will help in the build farm

(This used to be commit 05c53de97ee98ae27b064d15085606b041307bc2)

15 years agor668: fix the build
Stefan Metzmacher [Thu, 13 May 2004 10:38:11 +0000 (10:38 +0000)]
r668: fix the build

(This used to be commit ba5e71f59e0547aa8329661c7fec73a6469726a5)

15 years agor667: remove Data::Dumper dependecy
Stefan Metzmacher [Thu, 13 May 2004 10:35:08 +0000 (10:35 +0000)]
r667: remove Data::Dumper dependecy

(This used to be commit eae450f219701e156a5bd0fd7096dd7fe7da6e2b)

15 years agor666: readd 'make etags' and 'make ctags'
Stefan Metzmacher [Thu, 13 May 2004 10:26:22 +0000 (10:26 +0000)]
r666: readd 'make etags' and 'make ctags'

(This used to be commit fcab9867f90f86c329d82925549c2f9733131ab5)

15 years agor665: merge over the new build system from my tmp branch
Stefan Metzmacher [Thu, 13 May 2004 10:20:53 +0000 (10:20 +0000)]
r665: merge over the new build system from my tmp branch
to the main SAMBA_4_0 tree.

NOTE: that it's not completely ready, but it's functional:-)

(This used to be commit c78a2ddb28ec50d6570a83b1f66f18a5c3621731)

15 years agor655: Fix if() logic
Jelmer Vernooij [Wed, 12 May 2004 16:13:32 +0000 (16:13 +0000)]
r655: Fix if() logic
(This used to be commit 09096cfc3e1b35b4ac944cf84bfdec6ee44e06bf)

15 years agor649: return unknown interface when the client not yet
Stefan Metzmacher [Tue, 11 May 2004 15:39:23 +0000 (15:39 +0000)]
r649: return unknown interface when the client not yet
binds succesful to an interface

(This used to be commit c39e450702cfa2b577c64e14ba1428fd95db7ade)

15 years agor644: add SPNEGO auth type
Stefan Metzmacher [Tue, 11 May 2004 00:43:46 +0000 (00:43 +0000)]
r644: add SPNEGO auth type

(This used to be commit 75bca5dcfa68de0d18a144a221260d2f728e0bfc)

15 years agor641: readd 'use dump;'
Stefan Metzmacher [Mon, 10 May 2004 23:23:43 +0000 (23:23 +0000)]
r641: readd 'use dump;'

(This used to be commit 8e2c08f8c7f9481d64b87e7d45e98bc48661efbb)

15 years agor638: remove unused dependency to Data::Dumper and dump
Stefan Metzmacher [Mon, 10 May 2004 22:46:48 +0000 (22:46 +0000)]
r638: remove unused dependency to Data::Dumper and dump
(fix some  build farm hosts)

(This used to be commit 8735a393c19711cc0f0cf392684d523b1abd2878)

15 years agor627: remove the precompiled header when we call make clean or make proto
Stefan Metzmacher [Mon, 10 May 2004 12:38:08 +0000 (12:38 +0000)]
r627: remove the precompiled header when we call make clean or make proto

(This used to be commit e37238a7c7c69e3dfcda319752e13131207d59e4)

15 years agor626: make the code a bit more readable
Stefan Metzmacher [Mon, 10 May 2004 12:37:06 +0000 (12:37 +0000)]
r626: make the code a bit more readable

(This used to be commit 81b94718e4145a53947d401c4b4b88b71c71e4a4)

15 years agor625: - handle passwords longer than length 14 (thanks to abartlet for pointing...
Andrew Tridgell [Mon, 10 May 2004 12:05:54 +0000 (12:05 +0000)]
r625:  - handle passwords longer than length 14 (thanks to abartlet for pointing out the bug)

 - delete unicodePwd if not storing a plaintext password
(This used to be commit 6c3f22a685c55f183f4e0e4303e3d9990f4b39b5)

15 years agor624: all templates should be in class Template
Andrew Tridgell [Mon, 10 May 2004 12:03:38 +0000 (12:03 +0000)]
r624: all templates should be in class Template
(This used to be commit 0431d309037e97456895095f8e0a44b71de1454e)

15 years agor623: setUserInfo level 24 (password set) now works in the SAMR server. This includes all
Andrew Tridgell [Mon, 10 May 2004 11:23:50 +0000 (11:23 +0000)]
r623: setUserInfo level 24 (password set) now works in the SAMR server. This includes all
of the password complexity, password history and other password restrictions.
(This used to be commit cb070b9084d95cf5178edbef951b75eab62b7220)

15 years agor622: removed some unused functions to make smbd compile again after
Andrew Tridgell [Mon, 10 May 2004 08:58:42 +0000 (08:58 +0000)]
r622: removed some unused functions to make smbd compile again after
andrew's recent chainsaw job :)
(This used to be commit 20166f4e19a599a85dfff045a738309d191db9e7)

15 years agor620: Remove more ununsed code.
Andrew Bartlett [Sun, 9 May 2004 23:05:37 +0000 (23:05 +0000)]
r620: Remove more ununsed code.

Andrew Bartlett
(This used to be commit 795ace17a8905f495e9e191ffbd559927894941b)

15 years agor619: Remove more code that is no longer called.
Andrew Bartlett [Sun, 9 May 2004 22:50:31 +0000 (22:50 +0000)]
r619: Remove more code that is no longer called.

Andrew Bartlett
(This used to be commit 4e614cbe922ddc591b17b2357e17eff8ce1d546c)

15 years agor617: Sync some minor updates with repository:
Tim Potter [Sun, 9 May 2004 22:35:00 +0000 (22:35 +0000)]
r617: Sync some minor updates with repository:

  - start handing idl string types
  - comments
  - generate field types
  - code to select field types and bases
(This used to be commit 3d4148c07c46d5d99bd91e1985540cc4e59db2bc)

15 years agor615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,
Volker Lendecke [Sun, 9 May 2004 15:39:12 +0000 (15:39 +0000)]
r615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,

I've added the hidden attribute numMembers that must be maintained by
Add/DelGroupMember for the GroupInfoAll query.

(This used to be commit 945d7478605c1bd67e4162ebb0635ab7da11faaf)

15 years agor614: Clean out the POSIX assumptions from the Samba4 auth subsystem.
Andrew Bartlett [Sun, 9 May 2004 13:42:02 +0000 (13:42 +0000)]
r614: Clean out the POSIX assumptions from the Samba4 auth subsystem.

This removes the code that tried to lookup posix groups, as well as
the code that was tied to the SAM_ACCOUNT.

This should make auth_ldb much easier to write :-)

Andrew Bartlett
(This used to be commit e096ee2112adecaa69b6b3eb155a4e8f80dfc0f7)

15 years agor613: Fix the RPC-SAMR torture test, for my session_key changes.
Andrew Bartlett [Sun, 9 May 2004 13:37:17 +0000 (13:37 +0000)]
r613: Fix the RPC-SAMR torture test, for my session_key changes.

Andrew Bartlett
(This used to be commit a04b074c049db832f4c02a35d951d40875fce6d1)

15 years agor612: fixed a timezone call typo noticed by abartlet
Andrew Tridgell [Sun, 9 May 2004 13:26:34 +0000 (13:26 +0000)]
r612: fixed a timezone call typo noticed by abartlet
(This used to be commit 329c5ccd74680381b30c4a2235010c766ac46ecc)

15 years agor611: Fix breakage from my last commit:
Andrew Bartlett [Sun, 9 May 2004 13:07:23 +0000 (13:07 +0000)]
r611: Fix breakage from my last commit:

Now that all session keys are DATA_BLOBs, fix the callers.

This assumes some things about the behaviour of certain crypto
algorithms, without the ability to test it on session keys != 16 bytes
in length.  We will just need to retest when we get the KRB5 support
in (DES keys are 8 bytes).

Andrew Bartlett
(This used to be commit e4355a7ec1eba92bdecef8cc478272897276dbae)

15 years agor610: - Merge the Samba3 'ntlm_auth --diagnostics' testsuite to Samba4.
Andrew Bartlett [Sun, 9 May 2004 12:42:18 +0000 (12:42 +0000)]
r610:  - Merge the Samba3 'ntlm_auth --diagnostics' testsuite to Samba4.
  - This required using NETLOGON_NEG_AUTH2_FLAGS for the
    SetupCredentials2 negotiation flags, which is what Samba3 does,
    because otherwise the server uses different crypto.
  - This tests the returned session keys, which we decrypt.

 - Update the Samba4 notion of a 'session key' to be a DATA_BLOB in
   most places.

 - Fix session key code to return NT_STATUS_NO_SESSION_KEY if none is

 - Remove a useless argument to SMBsesskeygen_ntv1

 - move netr_CredentialState from the .idl to the new credentials.h

Andrew Bartlett
(This used to be commit 44f8b5b53e6abd4de8a676f78d729988fadff320)

15 years agor609: allow ldbedit to take a list of attributes to edit, just like
Andrew Tridgell [Sun, 9 May 2004 12:37:35 +0000 (12:37 +0000)]
r609: allow ldbedit to take a list of attributes to edit, just like
ldbsearch. This allows you to edit the description of all users using
something like:

  ldbedit 'objectclass=user' description

and not get overwhelmed with fields. It also allows you to edit HIDDEN attributes
by specifying them explicitly
(This used to be commit dd83d39de23cdf8c574005829972dae8dc6bee6a)

15 years agor608: - a couple of very minor fixes to the CreateGroup code
Andrew Tridgell [Sun, 9 May 2004 12:32:25 +0000 (12:32 +0000)]
r608: - a couple of very minor fixes to the CreateGroup code

- added samr_GetUserPwInfo() samr server call
(This used to be commit 0250f5d6aaf4f9325ace707c69f5e24bcd7a0ed9)

15 years agor607: When our code is looking for an 'empty' data blob
Andrew Bartlett [Sun, 9 May 2004 12:30:33 +0000 (12:30 +0000)]
r607: When our code is looking for an 'empty' data blob
some of it tests the .length, other code checks the

Ensure that we always NULL the .data, so that talloc-based
blobs behave just like their direct malloc equivalents.

Andrew Bartlett
(This used to be commit 64121aa1a9d037d3969f24be62f4521611c89888)

15 years agor606: added a HIDDEN attribute on fields in ldb (in @ATTRIBUTES). This allows you...
Andrew Tridgell [Sun, 9 May 2004 12:30:30 +0000 (12:30 +0000)]
r606: added a HIDDEN attribute on fields in ldb (in @ATTRIBUTES). This allows you to mark
an attribute as only appearing in searches that explicitly name it. It will be used
for attributes like nTSecurityDescriptor
(This used to be commit f5cd3d733b71368ea652f8a4d653d87f45ff983f)

15 years agor605: Implement CreateDomainGroup, essentially cut&paste from CreateUser2.
Volker Lendecke [Sun, 9 May 2004 11:21:46 +0000 (11:21 +0000)]
r605: Implement CreateDomainGroup, essentially cut&paste from CreateUser2.

(This used to be commit 59241c0c9aa2d64d66eb04e81aa5500681604061)

15 years agor604: Better dumping of in,out,ref properties.
Tim Potter [Sun, 9 May 2004 10:55:54 +0000 (10:55 +0000)]
r604: Better dumping of in,out,ref properties.
(This used to be commit 209f5a25a950e8780e9512b71fbb12b1cdbe1a17)

15 years agor602: Autogenerated packet-dcerpc-samr.c now compiles!
Tim Potter [Sun, 9 May 2004 10:03:55 +0000 (10:03 +0000)]
r602: Autogenerated packet-dcerpc-samr.c now compiles!
(This used to be commit 0c1069b56e7c80e2b428f6a6b550eacd5ac3d762)

15 years agor601: added the server code for all the samr_SetUserInfo and samr_QueryUserInfo level...
Andrew Tridgell [Sun, 9 May 2004 09:39:47 +0000 (09:39 +0000)]
r601: added the server code for all the samr_SetUserInfo and samr_QueryUserInfo levels except for the password
set levels.

This means that a large part of the RPC-SAMR torture test now runs correctly against Samba4
(This used to be commit ec0a51898f543578e755207d81ed5c1524861c64)

15 years agor600: Get rid of trailing whitespace which freaks out emacs' fontification.
Tim Potter [Sun, 9 May 2004 07:10:12 +0000 (07:10 +0000)]
r600: Get rid of trailing whitespace which freaks out emacs' fontification.
(This used to be commit d0383e9a7a0a5bee9a52ddc81d5f89c9f01c269b)

15 years agor597: Start generating parser code - only supports uint16, uint32 and policy
Tim Potter [Sun, 9 May 2004 01:26:26 +0000 (01:26 +0000)]
r597: Start generating parser code - only supports uint16, uint32 and policy
handle types.
(This used to be commit 1e02ccd94edc87f4107d21f7f778f1a88c9e197d)

15 years agor596: log all ldb searches at level 4 in samdb
Andrew Tridgell [Sun, 9 May 2004 00:42:35 +0000 (00:42 +0000)]
r596: log all ldb searches at level 4 in samdb
(This used to be commit defaf0d817a7c207da59692245aa65bc30c9bd19)

15 years agor595: nicer handling on max_size multiplier
Andrew Tridgell [Sun, 9 May 2004 00:42:09 +0000 (00:42 +0000)]
r595: nicer handling on max_size multiplier
(This used to be commit 994baba7ebc267cb3051109aee022d71472aa6b6)

15 years agor594: - make sure all users in the domain have the same base sid!
Andrew Tridgell [Sun, 9 May 2004 00:41:32 +0000 (00:41 +0000)]
r594:  - make sure all users in the domain have the same base sid!

 - added proper ldap time construction to provisioning
(This used to be commit 0f12584b4b1b90aa20c6a4a5199829b5beba2a1d)

15 years agor593: add a constant for the records size multiplier for max_size in samr_EnumDomainUsers
Andrew Tridgell [Sun, 9 May 2004 00:40:45 +0000 (00:40 +0000)]
r593: add a constant for the records size multiplier for max_size in samr_EnumDomainUsers
(This used to be commit 252b11112ce22152de3d53d0ba657879346ff243)

15 years agor591: don't need to init non-ref out ptrs (thanks to abartlet for spotting this)
Andrew Tridgell [Sun, 9 May 2004 00:39:39 +0000 (00:39 +0000)]
r591: don't need to init non-ref out ptrs (thanks to abartlet for spotting this)
(This used to be commit 3ac0cff83752b98ee7b8af7f4f9a33ffe9ae05e7)

15 years agor589: Fix IDL dump module so --dump and --diff options to pidl.pl work
Tim Potter [Sat, 8 May 2004 23:51:23 +0000 (23:51 +0000)]
r589: Fix IDL dump module so --dump and --diff options to pidl.pl work
again.  Still a few problems left though.
(This used to be commit e921a5879f8a5a867dce61e684a0010a5dab9472)

15 years agor587: added server code for samr_EnumDomainUsers, and started adding
Andrew Tridgell [Sat, 8 May 2004 14:42:45 +0000 (14:42 +0000)]
r587: added server code for samr_EnumDomainUsers, and started adding
samr_SetUserInfo and samr_QueryUserInfo
(This used to be commit e0db9659a85b59e52fbe033a94b411d6c64d9f9c)

15 years agor586: removed --clientfns from build_idl.sh (tim removed that code from pidl)
Andrew Tridgell [Sat, 8 May 2004 07:12:04 +0000 (07:12 +0000)]
r586: removed --clientfns from build_idl.sh (tim removed that code from pidl)
(This used to be commit d1dcde1d913803a44b07a1937262ae627680072c)

15 years agor583: fixed two bugs in the handling of index entry deletion
Andrew Tridgell [Sat, 8 May 2004 03:44:47 +0000 (03:44 +0000)]
r583: fixed two bugs in the handling of index entry deletion
(This used to be commit 7b5f3370e6c078bf506ac3eb24fb330d4aee7688)

15 years agor582: added the LMSessKey in SamInfo and SamInfo2, thanks to work by abartlet
Andrew Tridgell [Sat, 8 May 2004 02:48:24 +0000 (02:48 +0000)]
r582: added the LMSessKey in SamInfo and SamInfo2, thanks to work by abartlet

added test code for SamLogon validation level 2 and 3, so we test both
SamInfo and SamInfo2
(This used to be commit 321dbb61cc0743379ceb6b8fff6a0ca37f308bc2)

15 years agor578: initial server side implementation of samr_CreateUser(),
Andrew Tridgell [Sat, 8 May 2004 00:02:31 +0000 (00:02 +0000)]
r578: initial server side implementation of samr_CreateUser(),
samr_CreateUser2(), samr_LookupNames(), samr_OpenUser(),
and samr_DeleteUser()

this uses a user template in the SAM db, of objectclass "userTemplate"
and dn CN=TemplateUser,CN=Templates,$BASEDN. Using a template allows
an admin to add any default user attributes that they might want to
the user template and all new users will receive those attributes.
(This used to be commit 10b6e0011b5952c98432dc2d4b2058ac89a9cc2d)

15 years agor577: extended the LookupNames test to check for correct handling of unmapped names
Andrew Tridgell [Fri, 7 May 2004 23:57:35 +0000 (23:57 +0000)]
r577: extended the LookupNames test to check for correct handling of unmapped names
(This used to be commit e3b31625f476cb1b8a4d5003dee2c574582c9b46)

15 years agor576: added a ldap_timestring() function (needed for fields like whenChanged in SAM db)
Andrew Tridgell [Fri, 7 May 2004 23:56:57 +0000 (23:56 +0000)]
r576: added a ldap_timestring() function (needed for fields like whenChanged in SAM db)
(This used to be commit b2a63555189fea41184a2cac796945bca4e98995)

15 years agor575: moved the SID_NAME_USE enum into samr.idl
Andrew Tridgell [Fri, 7 May 2004 23:55:52 +0000 (23:55 +0000)]
r575: moved the SID_NAME_USE enum into samr.idl
(This used to be commit 2cb06b39d91ef18b21c18e9376ccbd8076aeecf8)

15 years agor574: - another attempt at const cleanliness in ldb
Andrew Tridgell [Fri, 7 May 2004 23:54:41 +0000 (23:54 +0000)]
r574:  - another attempt at const cleanliness in ldb

 - fixed a problem with searching for values containing an '=' sign

 - fixed the semantics of attempting an attribute deletion on an attribute that doesn't exist.

 - added some more ldb_msg_*() utilities
(This used to be commit 62b4ec367d170330d837b0f1fe5cd13205a53b59)

15 years agor550: Remove clientfns.pm module - it was a bad idea.
Tim Potter [Fri, 7 May 2004 11:57:31 +0000 (11:57 +0000)]
r550: Remove clientfns.pm module - it was a bad idea.

Start to resurrect eparser.pm for auto-generating ethereal dissectors
for rpc.
(This used to be commit 993a18dd35fb0b09c088eb2bb38d3e14ff755130)

15 years agor549: added support for DOS error codes in NTSTATUS returns. This uses a
Andrew Tridgell [Fri, 7 May 2004 11:56:13 +0000 (11:56 +0000)]
r549: added support for DOS error codes in NTSTATUS returns. This uses a
range of NTSTATUS codes that are normally invalid to prevent conflicts
with real error codes.

use the new DOS facility to fix the ERRbaduid return that volker found
(This used to be commit 10fdfb52398857b604fff9684ee65a96d970bdaa)

15 years agor514: added a context pointer to the samdb interface, as suggested by
Andrew Tridgell [Thu, 6 May 2004 12:42:42 +0000 (12:42 +0000)]
r514: added a context pointer to the samdb interface, as suggested by
metze. Also added a reference count so that a client can close the
connection handle and still used a derived domain handle.
(This used to be commit b1cd98188d6f1f8236f5dbc7a3605a39ae27fb73)

15 years agor513: added a generic ldb debug system to allow the Samba debug functions to
Andrew Tridgell [Thu, 6 May 2004 09:55:05 +0000 (09:55 +0000)]
r513: added a generic ldb debug system to allow the Samba debug functions to
be cleanly interfaced to ldb
(This used to be commit 74b89d5f960d6b936751e3f057b4540eb80b79cd)

15 years agor511: fix some const handling
Andrew Tridgell [Thu, 6 May 2004 07:33:28 +0000 (07:33 +0000)]
r511: fix some const handling
(This used to be commit be94cc4032b23fd99823902ddcd1472a72314a88)

15 years agor510: converted the samdb code to give ldb a talloc context rather than letting ldb...
Andrew Tridgell [Thu, 6 May 2004 07:32:51 +0000 (07:32 +0000)]
r510: converted the samdb code to give ldb a talloc context rather than letting ldb use malloc
(This used to be commit a3edd4bca8769cd804a5908286c7a18ca5c8fa00)

15 years agor509: fixed a memory handling bug that affects ldb with memory pools that
Andrew Tridgell [Thu, 6 May 2004 07:30:51 +0000 (07:30 +0000)]
r509: fixed a memory handling bug that affects ldb with memory pools that
change with each request
(This used to be commit 18695cefa16b867427e3ca2fb0d787d850ea25c3)

15 years agor508: fixed a place where we used free() on memory from a talloc(). The new
Andrew Tridgell [Thu, 6 May 2004 05:57:33 +0000 (05:57 +0000)]
r508: fixed a place where we used free() on memory from a talloc(). The new
talloc code catches errors like this.
(This used to be commit 22aa425c96030f55f6202bca1e1a876b0bc03f03)

15 years agor507: the new ldb code will use talloc_free() a lot, so I have made
Andrew Tridgell [Thu, 6 May 2004 05:53:35 +0000 (05:53 +0000)]
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 2331d4e76e40ff08215853f747f7063213ac92ce)

15 years agor506: got rid of unused function secrets_get_trusted_domains()
Andrew Tridgell [Thu, 6 May 2004 05:51:51 +0000 (05:51 +0000)]
r506: got rid of unused function secrets_get_trusted_domains()
(This used to be commit bb74a94e2610620987a44ab7289115a8ee361529)

15 years agor504: fixed a bad call to list_union()
Andrew Tridgell [Thu, 6 May 2004 04:45:29 +0000 (04:45 +0000)]
r504: fixed a bad call to list_union()
(This used to be commit 4404056cd5fd65d72a38ea474fe330281b3ee19e)

15 years agor503: we don't need to include ldb_parse.h any more
Andrew Tridgell [Thu, 6 May 2004 04:41:28 +0000 (04:41 +0000)]
r503: we don't need to include ldb_parse.h any more
(This used to be commit 85e57684b4dc4edcfd6d4cd1492d63810f8ce211)

15 years agor502: modified ldb to allow the use of an external pool memory
Andrew Tridgell [Thu, 6 May 2004 04:40:15 +0000 (04:40 +0000)]
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 3955c482e6c2c9e975a4bb809ec8cb6068e48e34)

15 years agor491: regtree and gregedit also depend on LIBCMDLINE (popt stuff)
Stefan Metzmacher [Wed, 5 May 2004 10:29:25 +0000 (10:29 +0000)]
r491: regtree and gregedit also depend on LIBCMDLINE (popt stuff)

(This used to be commit ace939a5882bd35295246b5816a3344f70d20e29)

15 years agor490: - expanded the test suite to test modify and delete operations
Andrew Tridgell [Wed, 5 May 2004 04:27:29 +0000 (04:27 +0000)]
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 01e87406768cb5a98ac8530a2f361a4987a36cd3)

15 years agor476: i forgot the argument to get_time_zone()
Andrew Tridgell [Tue, 4 May 2004 22:53:47 +0000 (22:53 +0000)]
r476: i forgot the argument to get_time_zone()
(This used to be commit 34ff18839c97dbb77c76097b4484ebec398da192)

15 years agor469: considerably improved the ChangePasswordUser3() IDL thanks to an idea from...
Andrew Tridgell [Tue, 4 May 2004 13:42:32 +0000 (13:42 +0000)]
r469: considerably improved the ChangePasswordUser3() IDL thanks to an idea from abartlet
(This used to be commit 5f30c3b077b59fc7ec40644e3af7236292100c6b)

15 years agor468: fixed timegm() on broken systems
Andrew Tridgell [Tue, 4 May 2004 13:41:08 +0000 (13:41 +0000)]
r468: fixed timegm() on broken systems
(This used to be commit a3d639d04ff25deabd299ea24917adde9192ed38)

15 years agor467: hopefully get the buildfarm compiling fine now...
Stefan Metzmacher [Tue, 4 May 2004 13:18:29 +0000 (13:18 +0000)]
r467: hopefully get the buildfarm compiling fine now...

(This used to be commit d15f0e18bb43608c611cfe78fc79db9ee10e1eb2)

15 years agor466: implemented samr_OpenDomain() and samr_GetDomPwInfo() server side calls
Andrew Tridgell [Tue, 4 May 2004 07:53:06 +0000 (07:53 +0000)]
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 bba0044a514cf86cbcf14bc82dd6c49808c22dab)

15 years agor465: we need common.h in two more rpc server pipes
Andrew Tridgell [Tue, 4 May 2004 06:11:47 +0000 (06:11 +0000)]
r465: we need common.h in two more rpc server pipes
(This used to be commit d96b68169a5ab46cc0550732d4fe94af75e06fd6)

15 years agor464: a big improvement to the API for writing server-side RPC
Andrew Tridgell [Tue, 4 May 2004 06:07:52 +0000 (06:07 +0000)]
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 a4df5c7cf88891a78d82c8d6d7f058d8485e73f0)

15 years agor463: build ldb with debugging when standalone
Andrew Tridgell [Tue, 4 May 2004 05:58:52 +0000 (05:58 +0000)]
r463: build ldb with debugging when standalone
(This used to be commit 77269e7ad6f569585d5fad37ee63169c4eee3f01)

15 years agor462: added an explanation about the rather complex ltdb_key() function
Andrew Tridgell [Tue, 4 May 2004 05:58:22 +0000 (05:58 +0000)]
r462: added an explanation about the rather complex ltdb_key() function
(This used to be commit 894e44022d16d9ff43f421fb15495845710000ab)

15 years agor459: added an initial provision.ldif - this is temporary, and needs to be
Andrew Tridgell [Mon, 3 May 2004 14:59:23 +0000 (14:59 +0000)]
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 86604bef236568028e84e6b1e8d935c3cfd70112)

15 years agor458: this is the (very primitive) beginnings of a SAMR server for
Andrew Tridgell [Mon, 3 May 2004 14:58:08 +0000 (14:58 +0000)]
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 e2002e40a5abe0cd33a2056b1da8ba5732f9021f)

15 years agor457: added some more samr tests to help me work out the right error codes
Andrew Tridgell [Mon, 3 May 2004 14:54:47 +0000 (14:54 +0000)]
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 0f2503111498e809237e0155962db55dfde8cbfb)

15 years agor456: - added -i option to ldbsearch
Andrew Tridgell [Mon, 3 May 2004 14:51:26 +0000 (14:51 +0000)]
r456:  - added -i option to ldbsearch

 - fixed sorting bug in ldb index handing
(This used to be commit cdd48e2b9b3ca6be5503eec401e09db162408ac8)

15 years agor454: allow a non-URL form of a filename to be used in ldb_connect(). This
Andrew Tridgell [Mon, 3 May 2004 09:34:18 +0000 (09:34 +0000)]
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 03df31cef025b2087531579437d6bae1ec36e82f)