1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

3763 Commits

Author SHA1 Message Date
Volker Lendecke
d49754944c NetBSD defines innetgr() in <netgroup.h>
(This used to be commit 7ad8e22073b577cd454675bacf92549e81f55e1c)
2008-02-01 13:06:23 +01:00
Günther Deschner
a3b00a3244 Remove unused marshalling for SAMR_OPEN_USER.
Guenther
(This used to be commit f34c0e7ada8ce625ee20e3d776e41dabbad71ce5)
2008-02-01 12:30:25 +01:00
Günther Deschner
e8c794fabe Remove unused marshalling for SAMR_OPEN_ALIAS.
Guenther
(This used to be commit c00d629d4e557e5efd7c339904e228ca76504e7a)
2008-02-01 12:30:07 +01:00
Günther Deschner
331c1ad49b Remove unused marshalling for SAMR_OPEN_GROUP.
Guenther
(This used to be commit 9660a341b6b32609b28770130e974d674ab31215)
2008-02-01 12:29:45 +01:00
Günther Deschner
481a7f9572 Remove unused marshalling for SAMR_OPEN_DOMAIN.
Guenther
(This used to be commit ebf9caa004899281d0fb44cac2e2494d322810bd)
2008-02-01 12:29:26 +01:00
Günther Deschner
68900ea101 Remove unused marshalling for SAMR_DELETE_DOM_USER.
Guenther
(This used to be commit 905b3898e0ac7a1f9cca4575246df419b0a1c7f1)
2008-02-01 10:17:57 +01:00
Günther Deschner
e6fd6b4941 Remove unused marshalling for SAMR_DELETE_DOM_ALIAS.
Guenther
(This used to be commit 445887d805c26beea33b6e5b08717e2841abe7b2)
2008-02-01 10:16:02 +01:00
Günther Deschner
bd9d6a885a Remove unused marshalling for SAMR_DELETE_DOM_GROUP.
Guenther
(This used to be commit 20503717be5287c003ca63d74419f785d59f83e0)
2008-02-01 10:14:37 +01:00
Günther Deschner
8953619787 Remove old, unused marshalling code for SAMR_GET_DOM_PWINFO.
Guenther
(This used to be commit d74ab657df051b7bad616dbe7fe7732a653ffe6d)
2008-01-31 13:39:48 +01:00
Günther Deschner
d1f5450625 Remove unused samr_close marshalling.
Guenther
(This used to be commit 93d2ad944772513520de22aecffda15f38907b4e)
2008-01-31 11:20:26 +01:00
Günther Deschner
80b2e330f9 Remove include/rpc_ds.h and all references to it completly.
Jerry, please have a look if you're fine with that.

Guenther
(This used to be commit beae25c808a3a03d645f247e9befcd05e3ecca2c)
2008-01-29 17:51:05 +01:00
Günther Deschner
1a7583dd0b Remove unused rpc_ds marshalling code that is unused now.
Guenther
(This used to be commit 153253e14f82fc7078e9cc6f12409e6eda7ee7cb)
2008-01-29 15:51:19 +01:00
Günther Deschner
0adf8621cd Move DS_DOMAIN_FUNCTION defines to ads.h.
Guenther
(This used to be commit 2605c6758ebb2f53c0c91f99d766e3db548e07ce)
2008-01-29 15:15:28 +01:00
Günther Deschner
a6ce6c5649 Remove hand-written rpccli_netlogon_dsr_getdcnameex[2].
Guenther
(This used to be commit 3ded8b9b7eee18a3f903e264adfb7fea6a3c0c5f)
2008-01-25 21:43:55 +01:00
Günther Deschner
f1193f6603 Remove some unused structures from rpc_lsa.h.
Guenther
(This used to be commit a52066e6083ff4b0d21b57ba43a812c02c0cbd78)
2008-01-25 17:22:04 +01:00
Günther Deschner
05ff7fd46e Use generated DSSETUP client & server rpc functions and remove the hand-written ones.
Guenther
(This used to be commit d5ebfccebb1f1b56b45673a506fcdb414103c43b)
2008-01-25 15:30:43 +01:00
Günther Deschner
92183450f1 Trying to avoid defining new SAMR acct creation flags when we already have them with different
names. Matt, Jeremy, please check.

Guenther
(This used to be commit d4a9e46edf7336f673c001c559af96eb0ecf9f6f)
2008-01-25 01:04:30 +01:00
Günther Deschner
372f74bba2 Add WERR_INVALID_COMPUTER_NAME.
Guenther
(This used to be commit cb1ff32eff06031150a6821658152e02a4077bbd)
2008-01-24 23:41:59 +01:00
Günther Deschner
108fc52c6b Add dump-domain-list command for debugging winbindd's domain_list.
Guenther
(This used to be commit 10fa43f2840899c0854763e55b9174827c522a5b)
2008-01-24 16:21:53 +01:00
Stefan Metzmacher
530e503a92 netlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32
metze
(cherry picked from commit 7222edb9cde5cdeb9d065e890775a7254b26648f)
(This used to be commit 503082e15e03def33434d3e5ff4fbe750873aab0)
2008-01-24 15:17:45 +01:00
Günther Deschner
df5b03a780 Re-run make idl and use generated ndr based on samba4 security.idl (except for DOM_SID).
Guenther
(This used to be commit 1781a57b18f681f1bc03873330147a813f10eba2)
2008-01-24 13:54:45 +01:00
Andreas Schneider
691c4b1a41 Windows 2008 (Longhorn) auth2 flag fixes.
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
(This used to be commit 5aadfcdaacd6f136eab9e107a88b8544e6d2105f)
2008-01-23 14:55:22 -08:00
Jeremy Allison
a0186fb78d Forward ported version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.
(This used to be commit 7d94f97947b7edfcf3ec52f0125e4593d6d54c05)
2008-01-23 13:54:02 -08:00
Michael Adam
a60b913a37 Fix tab_depth: it should not create an extra debug header.
In pstring removal 4ae4b23586, the behaviour of tab_depth was
changed to create an extra debug header (by using the DEBUGLVL
macro).

This extracts the debug level check from DEBUGLVL into
a macro CHECK_DEBUGLVL without the debug header creation
and uses this instead of DEBUGLVL in tab_depth.

Michael
(This used to be commit cbc7d921fa696e6c3c5197ad9f87442ba679df82)
2008-01-23 08:16:37 +01:00
Volker Lendecke
d4d962f691 Move samba_extended_info_version to smbd/trans2.c
This is right now only used there, and in version.c it gave linker errors
because some binaries (e.g. smbmnt) don't link in time.o
(This used to be commit 1f0eaaa5911f893c822465a26fe49ab65afb0730)
2008-01-22 13:00:22 +01:00
Corinna Vinschen
559603ad69 Get Samba version or capability information from Windows
On Jan 21 16:18, Danilo Almeida wrote:
> Corina wrote:
>
> > +	time_t samba_gitcommitdate;
>
> And:
>
> > +   SIVAL(pdata,28,extended_info.samba_gitcommitdate);
> > +   memcpy(pdata+32,extended_info.samba_version_string,32);
>
> Note that you are dropping bits on a system w/64-bit time_t, and that this has the 2038 problem.

Right.  I changed samba_gitcommitdate from time_t to NTTIME and shortened
samba_version_string to 28 bytes.  New patch below.

Thanks,
Corinna
(This used to be commit 28aa1c199d3a22cda34afcaab49c0561eeb0abcb)
2008-01-22 12:39:47 +01:00
Volker Lendecke
a4c2b04a2b Hide streams from the EA API
(This used to be commit e9bb3d5067b74a29beb778f85687829778e42b5b)
2008-01-22 12:29:02 +01:00
Volker Lendecke
9a22653222 Add SMB_VFS_FS_CAPABILITIES
It turns out that this is a necessary operation, separate from statvfs. statvfs
can fail during tcon, so conn->fs_capabilities would never see that we support
streams on a particular share.

James, can you check that I got the darwin variant right? Thanks!
(This used to be commit 3ad798d803b3b023533bb48e6993885f22b96095)
2008-01-21 16:14:27 +01:00
Michael Adam
c16b74cc86 Add a registry backend perflib that replaces the former dynamic overlay.
Michael
(This used to be commit c3fba415951329ee90c7250b4e8d539f91b227f6)
2008-01-20 03:47:37 +01:00
Michael Adam
2925d83573 Add a registry backend current_version that replaces the former dynamic overlay.
Make sure to only respond to the exact current version key since subkeys
are registered by other backends (printing and - soon - perflib).

Michael
(This used to be commit 2c650bf63ccd9dc5dddbf4700831489544ded055)
2008-01-20 03:47:36 +01:00
Michael Adam
a1af15d29f Reorder the registry key name constants in a more systematic way.
Michael
(This used to be commit faf406a4a1baf2946ea754a0760204748be99541)
2008-01-20 02:26:22 +01:00
Michael Adam
c5a5b404b4 Add a registry backend tcpip_params that replaces the former dynamic overlay.
Michael
(This used to be commit a8a743b693a162954948ca2438ce4b842c5cba30)
2008-01-20 02:03:40 +01:00
Michael Adam
663815ec2b Add a registry backend prod_options that replaces the former dynamic overlay.
Michael
(This used to be commit d9b89e9d30702f64805b3a3a3612066b19c051d1)
2008-01-20 02:03:39 +01:00
Volker Lendecke
014bfd35f8 Some systems do not have XATTR_ defined
(This used to be commit 2cac1d3919a96c480f34c93d8b9b07782d46ed23)
2008-01-20 00:44:14 +01:00
Volker Lendecke
1069cfe4ad Add streams support
This is the core of the streams support. The main change is that in
files_struct there is now a base_fsp pointer that holds the main file open
while a stream is open. This is necessary to get the rather strange delete
semantics right: You can't delete the main file while a stream is open without
FILE_SHARE_DELETE, and while a stream is open a successful unlink of the main
file leads to DELETE_PENDING for all further access on the main file or any
stream.
(This used to be commit 6022873cc155bdbbd3fb620689715f07a24d6ed1)
2008-01-19 23:25:36 +01:00
Volker Lendecke
1b976d5192 Add the STREAMINFO vfs call
Based on jpeach's work, modified the streaminfo prototype

Make use of it in trans2.c together with marshall_stream_info()
(This used to be commit c34d729c7c0600a8f11bf7e489a634a4e37fe88e)
2008-01-19 22:58:17 +01:00
Volker Lendecke
3b889a256b The remote storage op is gone
Alexander, I think this ok...
(This used to be commit 197b08ad789c4968155f1c711ef43a5383a89289)
2008-01-19 16:19:28 +01:00
Volker Lendecke
5a48ee89b8 Fix the build
... forgot to "git add" it
(This used to be commit 6d0a727f26dd0945634486f18a55aa8dd5813983)
2008-01-19 13:39:24 +01:00
Volker Lendecke
3d3d6e7020 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
(This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
2008-01-18 11:08:17 +01:00
Michael Adam
60fbc7e4f0 Add a registry backend netlogon_params that replaces the former dynamic overlay.
This is the first step in replacing the dynamic overlays by proper
backends implementing REGISTRY_OPS.

Michael
(This used to be commit e8a0524961d81fa83e0316905dc9d215e4aa7656)
2008-01-18 09:40:57 +01:00
Michael Adam
80d7cccfe7 Add and correct some WERROR codes.
Michael
(This used to be commit 7aec862ddc2aa2b5152c3a452971e55ba43646a5)
2008-01-18 01:10:55 +01:00
Derrell Lipman
add597f77c Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 7135d2aea5a68a79e2a77d4a02219436f5e154cc)
2008-01-17 11:50:41 -05:00
Derrell Lipman
4f09727df8 Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
If we're going to cache connections to IPC$, we'd better also cache the policy
handle and not use a stack-based handle that's invalid on subsequent calls.

Derrell
(This used to be commit 67c415661f6466c21cd0eaafabe58cba049d2af3)
2008-01-17 11:49:17 -05:00
Günther Deschner
10a55fb4ea Include auto-generated client headers for netlogon/samr.
Guenther
(This used to be commit ad8f6933322e7175b74cc3de525fda58ae150baa)
2008-01-17 16:54:46 +01:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-17 16:54:46 +01:00
Günther Deschner
101f275b98 Use pidl generated data from misc.idl.
Guenther
(This used to be commit 5d8e5cbc3b3ddd1c5788d66f252e4801739243bb)
2008-01-17 16:54:46 +01:00
Alexander Bokovoy
03387a0f58 Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.
As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
(This used to be commit e342ca0d931f9a5c8ec9e472dc9c63f1fe012b3a)
2008-01-17 16:59:29 +03:00
Alexander Bokovoy
026a66abec Rework of VFS is_offline() function to only return boolean offline/online result for a file.
This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
(This used to be commit 75cc08661473cce62756fa062071bb2bc1fb39ec)
2008-01-17 14:57:35 +03:00
Jeremy Allison
3020ec12a3 Fix the mess that ab just made of the new VFS code.
NEEDS MORE TESTING !
Jeremy.
(This used to be commit bcc94aed6f03211866aa85753a90fece87846ba9)
2008-01-16 17:22:31 -08:00
Alexander Bokovoy
02680bd75d Merge branch 'ctdb-merge' into v3-2-test
(This used to be commit 175662b5bbb5c8ecd81a60539f5846a938c26a3a)
2008-01-16 18:53:16 +03:00