1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

407 Commits

Author SHA1 Message Date
Andrew Tridgell
ae5a5113fb r937: - added a simple QuerySecurity implementation in samr server
- moved some sec desc defines into misc.idl

 - fixed pw_len field in UserInfo26

 - made some pipes available on TCP

 - added netr_DsrEnumerateDomainTrusts() to netlogon

 - added templates for remaining netlogon IDL calls (from ethereal)

 - added a unistr_noterm vs unistr error detector in ndr basic decoder

 - added torture test for netr_DsrEnumerateDomainTrusts()
2007-10-10 12:56:20 -05:00
Andrew Tridgell
0a2c6a1062 r917: - added the start of a LSA server to samba4.
- added start of QueryDomainInfo in samr server

"net rpc info" from samba3 now works against a samba4 server. I
suspect join will work fairly soon.
2007-10-10 12:56:19 -05:00
Andrew Tridgell
41f9b144f9 r904: - fixed account expiry testing in auth_sam
- added printf style format attribute checking to samdb varargs fns

- fix nt_time_to_unix() for zero and -1 times
2007-10-10 12:56:19 -05:00
Andrew Tridgell
69a2942f79 r898: - remove some unused macros
- remove unused lib/smbpasswd.c

- don't set the pkt size twice when doing SMB signing
2007-10-10 12:56:18 -05:00
Andrew Tridgell
66eb46dbb1 r893: a few more _t conversions 2007-10-10 12:56:18 -05:00
Stefan Metzmacher
2986c5f08c r890: convert samba4 to use [u]int8_t instead of [u]int8
metze
2007-10-10 12:56:16 -05:00
Stefan Metzmacher
af6f1f8a01 r889: convert samba4 to use [u]int16_t instead of [u]int16
metze
2007-10-10 12:56:16 -05:00
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Andrew Tridgell
9a9244a1c6 r873: converted samba4 to use real 64 bit integers instead of
structures. This was suggested by metze recently.

I checked on the build farm and all the machines we have support 64
bit ints, and support the LL suffix for 64 bit constants. I suspect
some won't support strtoll() and related functions, so we will
probably need replacements for those.
2007-10-10 12:56:14 -05:00
Andrew Tridgell
a70eb86a3f r867: removed a couple of unused structures 2007-10-10 12:56:13 -05:00
Stefan Metzmacher
ec624aefa8 r862: remove acl and sendfile stuff
it will be readded inside the ntvfs_posix module

metze
2007-10-10 12:56:13 -05:00
Stefan Metzmacher
8f59daba0d r861: remove the next round of unused stuff
metze
2007-10-10 12:56:13 -05:00
Stefan Metzmacher
972598d511 r853: remove a real big bunch of unused code
I really think that this is needed to get a better overview of what is currently used
Also this stuff is really out of date

so if we really ever need some of this stuff back,
a 'svn copy' from the SAMBA_3_0 branch should be no big problem...

metze
2007-10-10 12:56:12 -05:00
Stefan Metzmacher
bacab322ce r848: convert lib/tdb into the same layout as lib/ldb
metze
2007-10-10 12:56:02 -05:00
Andrew Tridgell
f61d333b2a r838: got rid of rpc_misc.h 2007-10-10 12:53:54 -05:00
Andrew Tridgell
3068b766ed r837: get rid of some more old rpc headers, and the genparser headers 2007-10-10 12:53:54 -05:00
Andrew Tridgell
d75fcbf068 r836: get rid of SEC_DESC and related structure definitions 2007-10-10 12:53:54 -05:00
Andrew Tridgell
e306e27cf3 r826: removed a pile of old code, in preparation for a new ACL handling system. I'd like to get rid of DOM_SID completely soon 2007-10-10 12:53:53 -05:00
Andrew Tridgell
8e5ddf5e8e r818: added server side SMB signing to Samba4 2007-10-10 12:53:52 -05:00
Andrew Bartlett
bd0e6c9983 r707: Chainsaw work - SAM_ACCOUNT can die, along with passdb
Andrew Bartlett
2007-10-10 12:53:44 -05:00
Andrew Bartlett
2aa0b55fb8 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
2007-10-10 12:53:42 -05:00
Andrew Bartlett
3813517a8b r683: Remove the trailing ; from this macro, so it can be used in an 'if' expression. 2007-10-10 12:53:42 -05:00
Stefan Metzmacher
c78a2ddb28 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
2007-10-10 12:53:36 -05:00
Andrew Bartlett
e096ee2112 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
2007-10-10 12:51:51 -05:00
Andrew Bartlett
44f8b5b53e 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
2007-10-10 12:51:51 -05:00
Andrew Tridgell
ec0a51898f 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
2007-10-10 12:51:50 -05:00
Andrew Tridgell
2cb06b39d9 r575: moved the SID_NAME_USE enum into samr.idl 2007-10-10 12:51:47 -05:00
Andrew Tridgell
10fdfb5239 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
2007-10-10 12:51:47 -05:00
Andrew Tridgell
85e57684b4 r503: we don't need to include ldb_parse.h any more 2007-10-10 12:51:45 -05:00
Andrew Bartlett
5876c78806 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
2007-10-10 12:51:42 -05:00
Andrew Tridgell
854b875bbe 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.
2007-10-10 12:51:34 -05:00
Jeremy Allison
4d0ed04c54 r204: Turns out that the string in the SEARCH unix_info level is that
rare thing, a non-length string (ie. not a WIRE_STRING) but a null
terminated char string. There wasn't a good interface to pull that
out of a blob (all the string interfaces assumed WIRE_STRINGS). Added
a new one, only used for this call. Sucks, I know - but the alternatives
suck more. Added tests for some of the unix info returned.
Jeremy.
2007-10-10 12:51:16 -05:00
Jeremy Allison
a25ae9addb r189: Added UNIX search into tests - added client library parse code.
Jeremy.
2007-10-10 12:51:15 -05:00
Jeremy Allison
7b2a266543 r184: Fix UNIX Search info level. This still needs to be added to the raw
client library before this test can work.
Jeremy.
2007-10-10 12:51:15 -05:00
Andrew Tridgell
af34710d4d r152: a quick airport commit ....
added ldbedit, a _really_ useful command

added ldbadd, ldbdel, ldbsearch and ldbmodify to build

solved lots of timezone issues, we now pass the torture tests with
client and server in different zones

fixed several build issues

I know this breaks the no-LDAP build. Wait till I arrive in San Jose for that
fix.
2007-10-10 12:51:11 -05:00
Richard Sharpe
7b34fbe0f2 r141: A number of changes to get things working on FreeBSD and reduce the breakage
caused by someone recently ...

1. Add configure check HAVE_COMPARISON_FN_T to see if this is defined. I
have not checked this on Linux yet, but will do so soon.

2. Add the definitions of malloc_p, realloc_p etc.

3. Check for LDAP and don't build stuff that depends on LDAP if we don't\
have it.

It currently builds on FreeBSD but there is one warning printed out at the end.
2007-10-10 12:51:11 -05:00
Andrew Tridgell
0b66590330 r134: - added ldb to the build of smbd
- fixed build of the ldb registry backend
2007-10-10 12:51:10 -05:00
Jelmer Vernooij
3adffa0217 r128: Another registry update. Changes:
- Start with the LDB backend
- The API is now more windows-like, which should make it easier to use
  in rpc_server
- Added a GTK+ front-end
- Added some more IDL

More updates will follow, especially in the RPC field..
2007-10-10 12:51:09 -05:00
Andrew Tridgell
f6cf9020c8 r100: remember the user session key during session setup so it can be used in various crypto
routines
2007-10-10 12:51:06 -05:00
Gerald Carter
11717ae912 r42: importing .cvsignore files 2007-10-10 12:50:40 -05:00
Jelmer Vernooij
7cab3a00d7 r20: Add the registry library. Still needs a lot of work,
see source/lib/registry/TODO for details.
2007-10-10 12:50:33 -05:00
Andrew Tridgell
b881b72cb9 switch from SIG_ATOMIC_T to sig_atomic_t -
Stefan Metzmacher
da5f22976f don't inlcude rpc/rpc.h and rpcsvc/*.h anymore
and remove NET_GROUP stuff, this needs to be implemented
in a better way if we ever readd this

metze
-
Stefan Metzmacher
cbfa29549e remove unused NISPLUS/AUTOMOUNT stuff
metze
-
Stefan Metzmacher
5ebd6fb761 move the tdb lib code to lib/tdb/*
metze
-
Andrew Tridgell
05db0b9d94 - modified the dcerpc client security code to be generic, so ntlmssp
and schannel are both instances of possible security modules

- added schannel sign and sign/seal support to the dcerpc client
  code. You select it with binding options of "schannel,sign" or
  "schannel,seal".
-
Stefan Metzmacher
041dc8c83d move include/ntvfs.h to ntvfs/ntvfs.h
metze
-
Stefan Metzmacher
af89a78123 - port AUTH and PASSDB subsystems to new
SMB_SUBSYSTEM() scheme

- some const fixes in ntvfs

metze
-
Stefan Metzmacher
47a240d7b8 do some merging from 3.0
metze
-
Stefan Metzmacher
d634a78fae remove some unused stuff
metze
-