Andrew Tridgell [Fri, 14 May 2004 00:22:26 +0000 (00:22 +0000)]
r711: don't hide attributes inside the special ldb_tdb records (so the fact
that a attribute is hidden is not itself hidden!)
Andrew Bartlett [Thu, 13 May 2004 23:16:33 +0000 (23:16 +0000)]
r708: Clean up copyright headers, to reflect code that has come and gone
over time.
Andrew Bartlett
Andrew Bartlett [Thu, 13 May 2004 23:11:53 +0000 (23:11 +0000)]
r707: Chainsaw work - SAM_ACCOUNT can die, along with passdb
Andrew Bartlett
Stefan Metzmacher [Thu, 13 May 2004 20:26:23 +0000 (20:26 +0000)]
r703: only use $PERL -W when --enable-debug
metz
Stefan Metzmacher [Thu, 13 May 2004 20:14:05 +0000 (20:14 +0000)]
r702: fix krb5 linking
metze
Stefan Metzmacher [Thu, 13 May 2004 20:13:17 +0000 (20:13 +0000)]
r701: change debug messages a bit
metze
Stefan Metzmacher [Thu, 13 May 2004 20:12:26 +0000 (20:12 +0000)]
r700: fix SMB_LIBRARY() to disable the lib by default
metze
Stefan Metzmacher [Thu, 13 May 2004 18:06:45 +0000 (18:06 +0000)]
r697: make use of SMB_EXT_LIB for LDAP and KRB5
metze
Stefan Metzmacher [Thu, 13 May 2004 18:04:36 +0000 (18:04 +0000)]
r696: fix formating
add pkg-config --libs-only-L to linker flags
metze
Stefan Metzmacher [Thu, 13 May 2004 18:02:46 +0000 (18:02 +0000)]
r695: don't add libs andlinkerflags to STATIC_LIBRARY
metze
Jelmer Vernooij [Thu, 13 May 2004 16:47:32 +0000 (16:47 +0000)]
r693: Make static
Jelmer Vernooij [Thu, 13 May 2004 16:45:01 +0000 (16:45 +0000)]
r692: Add libwinregistry
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
metze
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
metze
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
metze
Stefan Metzmacher [Thu, 13 May 2004 15:55:53 +0000 (15:55 +0000)]
r687: add newline at eof
metze
Jelmer Vernooij [Thu, 13 May 2004 15:37:57 +0000 (15:37 +0000)]
r686: - Add SMB_EXT_LIB_FROM_PKGCONFIG()
- Build gregedit and registry_gconf again if the required libs are found (gconf and gtk)
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
backend.
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
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
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.
Jelmer Vernooij [Thu, 13 May 2004 14:13:21 +0000 (14:13 +0000)]
r682: Typo fixes
Stefan Metzmacher [Thu, 13 May 2004 13:36:14 +0000 (13:36 +0000)]
r681: don't init r.out.result.v
metze
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)
metze
Stefan Metzmacher [Thu, 13 May 2004 12:42:28 +0000 (12:42 +0000)]
r679: fix make install
metze
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
metze
Stefan Metzmacher [Thu, 13 May 2004 12:16:35 +0000 (12:16 +0000)]
r677: fix: '$' -> '\$'
metze
Stefan Metzmacher [Thu, 13 May 2004 11:47:34 +0000 (11:47 +0000)]
r674: use the same -I flags as before
metze
Stefan Metzmacher [Thu, 13 May 2004 11:32:39 +0000 (11:32 +0000)]
r673: disable registry_gconf for now
metze
Stefan Metzmacher [Thu, 13 May 2004 10:53:52 +0000 (10:53 +0000)]
r672: disable gregedit for now
metze
Stefan Metzmacher [Thu, 13 May 2004 10:45:55 +0000 (10:45 +0000)]
r671: fix make ./include/proto.h
metze
Stefan Metzmacher [Thu, 13 May 2004 10:42:53 +0000 (10:42 +0000)]
r670: add make everything
metze
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
metze
Stefan Metzmacher [Thu, 13 May 2004 10:38:11 +0000 (10:38 +0000)]
r668: fix the build
metze
Stefan Metzmacher [Thu, 13 May 2004 10:35:08 +0000 (10:35 +0000)]
r667: remove Data::Dumper dependecy
metze
Stefan Metzmacher [Thu, 13 May 2004 10:26:22 +0000 (10:26 +0000)]
r666: readd 'make etags' and 'make ctags'
metze
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:-)
metze
Jelmer Vernooij [Wed, 12 May 2004 16:13:32 +0000 (16:13 +0000)]
r655: Fix if() logic
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
metze
Stefan Metzmacher [Tue, 11 May 2004 00:43:46 +0000 (00:43 +0000)]
r644: add SPNEGO auth type
metze
Stefan Metzmacher [Mon, 10 May 2004 23:23:43 +0000 (23:23 +0000)]
r641: readd 'use dump;'
metze
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)
metze
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
metze
Stefan Metzmacher [Mon, 10 May 2004 12:37:06 +0000 (12:37 +0000)]
r626: make the code a bit more readable
metze
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
Andrew Tridgell [Mon, 10 May 2004 12:03:38 +0000 (12:03 +0000)]
r624: all templates should be in class Template
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.
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 :)
Andrew Bartlett [Sun, 9 May 2004 23:05:37 +0000 (23:05 +0000)]
r620: Remove more ununsed code.
Andrew Bartlett
Andrew Bartlett [Sun, 9 May 2004 22:50:31 +0000 (22:50 +0000)]
r619: Remove more code that is no longer called.
Andrew Bartlett
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
Volker Lendecke [Sun, 9 May 2004 15:39:12 +0000 (15:39 +0000)]
r615: Implement samr_OpenGroup, samr_QueryGroupInfo, samr_SetGroupInfo,
samr_DeleteDomainGroup.
I've added the hidden attribute numMembers that must be maintained by
Add/DelGroupMember for the GroupInfoAll query.
Volker
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
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
Andrew Tridgell [Sun, 9 May 2004 13:26:34 +0000 (13:26 +0000)]
r612: fixed a timezone call typo noticed by abartlet
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
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
available.
- Remove a useless argument to SMBsesskeygen_ntv1
- move netr_CredentialState from the .idl to the new credentials.h
Andrew Bartlett
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
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
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
.data.
Ensure that we always NULL the .data, so that talloc-based
blobs behave just like their direct malloc equivalents.
Andrew Bartlett
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
Volker Lendecke [Sun, 9 May 2004 11:21:46 +0000 (11:21 +0000)]
r605: Implement CreateDomainGroup, essentially cut&paste from CreateUser2.
Volker
Tim Potter [Sun, 9 May 2004 10:55:54 +0000 (10:55 +0000)]
r604: Better dumping of in,out,ref properties.
Tim Potter [Sun, 9 May 2004 10:03:55 +0000 (10:03 +0000)]
r602: Autogenerated packet-dcerpc-samr.c now compiles!
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
Tim Potter [Sun, 9 May 2004 07:10:12 +0000 (07:10 +0000)]
r600: Get rid of trailing whitespace which freaks out emacs' fontification.
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.
Andrew Tridgell [Sun, 9 May 2004 00:42:35 +0000 (00:42 +0000)]
r596: log all ldb searches at level 4 in samdb
Andrew Tridgell [Sun, 9 May 2004 00:42:09 +0000 (00:42 +0000)]
r595: nicer handling on max_size multiplier
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
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
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)
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.
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
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)
Andrew Tridgell [Sat, 8 May 2004 03:44:47 +0000 (03:44 +0000)]
r583: fixed two bugs in the handling of index entry deletion
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
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.
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
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)
Andrew Tridgell [Fri, 7 May 2004 23:55:52 +0000 (23:55 +0000)]
r575: moved the SID_NAME_USE enum into samr.idl
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
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.
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
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.
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
Andrew Tridgell [Thu, 6 May 2004 07:33:28 +0000 (07:33 +0000)]
r511: fix some const handling
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
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
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.
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.
Andrew Tridgell [Thu, 6 May 2004 05:51:51 +0000 (05:51 +0000)]
r506: got rid of unused function secrets_get_trusted_domains()
Andrew Tridgell [Thu, 6 May 2004 04:45:29 +0000 (04:45 +0000)]
r504: fixed a bad call to list_union()
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
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.
Stefan Metzmacher [Wed, 5 May 2004 10:29:25 +0000 (10:29 +0000)]
r491: regtree and gregedit also depend on LIBCMDLINE (popt stuff)
metze
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
Andrew Tridgell [Tue, 4 May 2004 22:53:47 +0000 (22:53 +0000)]
r476: i forgot the argument to get_time_zone()
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
Andrew Tridgell [Tue, 4 May 2004 13:41:08 +0000 (13:41 +0000)]
r468: fixed timegm() on broken systems
Stefan Metzmacher [Tue, 4 May 2004 13:18:29 +0000 (13:18 +0000)]
r467: hopefully get the buildfarm compiling fine now...
metze