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

17698 Commits

Author SHA1 Message Date
Derrell Lipman
1d08b9013a r6392: - Fixes bug 2564: when smbc_opendir() was called with a file rather than
a directory, the errno returned could end up as ENOENT rather than ENOTDIR.

- Fixes some compiler warnings which showed up on IRIX, as reported by
  James Peach.
(This used to be commit 615a62b21f)
2007-10-10 10:56:40 -05:00
Gerald Carter
67e9fb7c7c r6388: BUG 2626: ensure that the calling_name is set to something after parsing smb.conf (if not set via -n)
(This used to be commit 97c68ec1e8)
2007-10-10 10:56:39 -05:00
Jeremy Allison
fecdaec41c r6385: Convert checking of egid and secondary egid list into
iterator functions so it can be used easily in a for loop.
Drops duplicated code from posix_acls.c
Jeremy.
(This used to be commit 81f30bf598)
2007-10-10 10:56:39 -05:00
Jeremy Allison
7f247f7b4d r6378: Other systems may not return 1 for checking WRITE permission.
Canaonicalise any +ve return to 1.
Jeremy.
(This used to be commit e594222d0b)
2007-10-10 10:56:39 -05:00
Gerald Carter
faf0b03522 r6373: minor changes to solaris packaging readme to bring it up to date
(This used to be commit 4213739ca2)
2007-10-10 10:56:39 -05:00
Gerald Carter
7374565f0c r6372: removing outdated Mandrake packaging files and pointing at Mandriva cooker (after clearing with Buchan)
(This used to be commit f8fb342d43)
2007-10-10 10:56:39 -05:00
Volker Lendecke
f74f7c933d r6367: Slim down pdb_interface.c a bit. next_entry and search_end are function
pointers now.

Yes, Jeremy, this is about re-inventing C++... :-)

Volker
(This used to be commit a831e54738)
2007-10-10 10:56:39 -05:00
Jeremy Allison
b39c949ae0 r6365: Wow, how much worse does this get. From info provided by
Eric Stewart <eric@lib.usf.edu> I realised we weren't checking
against the current effective groupid (set by force group) as
well as the group list. Fix this.
Jeremy.
(This used to be commit 0c4058c073)
2007-10-10 10:56:38 -05:00
Gerald Carter
b49c586de4 r6358: merging SMB_ASSERT() changes from the release branch
(This used to be commit 70178d5d27)
2007-10-10 10:56:38 -05:00
Stefan Metzmacher
6cc85bbe72 r6354: merge from 4_0 rev 6353:
we need the english output from the svn commands

metze
(This used to be commit 6b84f30e3d)
2007-10-10 10:56:38 -05:00
Volker Lendecke
d3d6126d94 r6351: This is quite a large and intrusive patch, but there are not many pieces that
can be taken out of it, so I decided to commit this in one lump. It changes
the passdb enumerating functions to use ldap paged results where possible. In
particular the samr calls querydispinfo, enumdomusers and friends have
undergone significant internal changes. I have tested this extensively with
rpcclient and a bit with usrmgr.exe. More tests and the merge to trunk will
follow later.

The code is based on a first implementation by Günther Deschner, but has
evolved quite a bit since then.

Volker
(This used to be commit f0bb44ac58)
2007-10-10 10:56:38 -05:00
Steve French
496c6f0884 r6349: Update cifs umount utility
(This used to be commit c303022951)
2007-10-10 10:56:38 -05:00
Jeremy Allison
cc7ebb3f14 r6348: Fix for bug #2605 reported by Daniel Patterson <Daniel_Patterson@national.com.au>.
Ensure smbclient doesn't perform commands if the "chdir" fails in a scripted set.
Jeremy.
(This used to be commit 644608ea7d)
2007-10-10 10:56:37 -05:00
Jeremy Allison
f60ad8ded6 r6346: Add a counter for the number of SMB operations per connection/file.
You will need to do a make clean after SVN updating this. Next will
come a smbcontrol message to dump this info. This should be interesting
to profile client activity.
Jeremy.
(This used to be commit 743174da86)
2007-10-10 10:56:37 -05:00
Jeremy Allison
da70ef7c06 r6344: Fix bug #2601 - it seems that DOS_OPEN_EXEC does mean readonly. Needed
for Win9x and OS/2 clients. More Samba4 tests against W2k3 will be needed
to confirm this but in the meantime get it up and running.
Jeremy.
(This used to be commit 77c0ade9fa)
2007-10-10 10:56:37 -05:00
Herb Lewis
7a7f9ab847 r6319: add prototype so -Wstrict-prototypes will not fail
(This used to be commit b92e8b1c82)
2007-10-10 10:56:37 -05:00
Herb Lewis
5a72f0da1d r6318: don't include smbwrapper stuff unless asked for
(This used to be commit ce38ead0fc)
2007-10-10 10:56:36 -05:00
Jeremy Allison
1a2c1f7d1e r6316: Remove over-cautious asserts. Damn wish I'd made the release
with this....
Jeremy.
(This used to be commit 11c464268d)
2007-10-10 10:56:36 -05:00
Gerald Carter
40062fbcde r6311: setting version to 3.0.15pre2
(This used to be commit 005427f73f)
2007-10-10 10:56:36 -05:00
Jeremy Allison
05cc4785a4 r6307: Ensure info requested bitmask is printed in log when querying security descriptors.
Jeremy.
(This used to be commit 4db288e314)
2007-10-10 10:56:36 -05:00
Jeremy Allison
c044df57dd r6302: OS/2 fix from Marcel Müller <mueller@maazl.de>. Don't check for mangled names
if mangled names is off.
Jeremy.
(This used to be commit b2330c3888)
2007-10-10 10:56:35 -05:00
Jeremy Allison
e1ff2af9dc r6297: Fix bug in our trans2 secondary processing. We need to pass in the
trans2 call info from the primary trans2 packet as it isn't present
in secondary transs packets. We only need to do this for functions that
satisfy more than one case in the switch statement. Found by Marcel Müller <mueller@maazl.de>.
Jeremy.
(This used to be commit 62edc3d5dc)
2007-10-10 10:56:35 -05:00
Gerald Carter
abd028d387 r6296: add message about known interoperability issue with Windows 2003 SP1 DCs
(This used to be commit 88c2ed1534)
2007-10-10 10:56:35 -05:00
Gerald Carter
121c22d1d5 r6291: BUG 2588: force smbclient messages to port 139 unless someone set the -p option
(This used to be commit 40f573e202)
2007-10-10 10:56:35 -05:00
Gerald Carter
380979282f r6290: and now the development tree becomes 3.0.15pre1
(This used to be commit 5ea3fdff1b)
2007-10-10 10:56:35 -05:00
Volker Lendecke
110d86876e r6282: Before converting enum_dom_groups, better get the previous version a bit
closer to being correct. 'svn blame' shows CVSIN, but somehow I get the
feeling this is my code...

Volker
(This used to be commit 5d34bd6175)
2007-10-10 10:56:35 -05:00
Volker Lendecke
dded66808d r6281: Fix the build for FreeBSD 4 -- no winbind
(This used to be commit 1ce9a0159d)
2007-10-10 10:56:34 -05:00
Volker Lendecke
0f7e9f6c56 r6279: Convert the RAP enum functions to the pdb_search API. Who is using this
nowadays? This looks rather broken, but survives basic tests with 'net'.

Volker
(This used to be commit 7ae1b94e3e)
2007-10-10 10:56:34 -05:00
Volker Lendecke
9f4c0afa0a r6277: This implements a new caching API for enumerating the pdb elements. It is
modeled after query_displayinfo and should hide the differences between users,
groups and aliases while allowing a cache analog load_sampw_entries:

struct pdb_search *pdb_search_users(uint16 acct_flags);
struct pdb_search *pdb_search_groups(void);
struct pdb_search *pdb_search_aliases(const DOM_SID *sid);
uint32 pdb_search_entries(struct pdb_search *search, uint32 start_idx,
                          uint32 max_entries,
                          struct samr_displayentry **result);
void pdb_search_destroy(struct pdb_search *search);

Why this API? Eventually we will need to apply the work gd has started on
enumerating users with paged ldap searches to groups and aliases. Before doing
that I want to clean up the search routines we have.

The sample application (more to follow) is 'net maxrid'.

Volker
(This used to be commit 8b4f67a1e9)
2007-10-10 10:56:34 -05:00
Volker Lendecke
1875e46d05 r6275: Implement RAP version of enumusers/enumgroups level 0. No, I've not gone mad,
this is to test future changes to enumeration functions...

This can successfully list users from nt4 and w2k3sp1.

Volker
(This used to be commit c73f2656fd)
2007-10-10 10:56:34 -05:00
Volker Lendecke
31b806b5df r6273: Remove some unused code, minor cleanup
(This used to be commit b451434e37)
2007-10-10 10:56:34 -05:00
Jeremy Allison
0003238873 r6269: With help from Marcel Müller <mueller@maazl.de> in tracking down the bug,
fix trans2 and nttrans secondary packet processing. We were being too strict checking
the incoming packet (by 1 byte).
Jeremy.
(This used to be commit 3eea1ff4b7)
2007-10-10 10:56:34 -05:00
Jeremy Allison
2c83fb4a06 r6266: Add includes for sys/extattr.h and sys/uio.h for FreeBSD xattr code.
Jeremy.
(This used to be commit 695d45bcad)
2007-10-10 10:56:33 -05:00
Volker Lendecke
83e11ba86c r6263: Get rid of generate_wellknown_sids, they are const static and initializable
statically.

Volker
(This used to be commit 3493d9f383)
2007-10-10 10:56:33 -05:00
Steve French
16167208cf r6262: Minor updates to cifs umount helper
(This used to be commit cd8b93edc6)
2007-10-10 10:56:33 -05:00
Jeremy Allison
9fda3ecda4 r6261: Tidyup message str printf. Ensure tvs struct is zeroed.
Jeremy.
(This used to be commit 6c9f227ef4)
2007-10-10 10:56:33 -05:00
Jeremy Allison
def41233b4 r6258: Fix found by OS/2 set_ea call. When setting specific info remember to terminate
once we've done that and not "break" into the generic file metadata set code.
Jeremy.
(This used to be commit f1e12be9ed)
2007-10-10 10:56:33 -05:00
Jeremy Allison
046bea52eb r6256: Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf Härnhammar <metaur@telia.com>
Jeremy.
(This used to be commit 3dfa6c40fc)
2007-10-10 10:56:32 -05:00
Steve French
f168ebafb3 r6255: Initial checkin of cifs umount utility
(This used to be commit 8f7c36a6c4)
2007-10-10 10:56:32 -05:00
Jeremy Allison
8abd17fe1c r6253: Add FreeBSD EA API support. Bug #2576 - patch donated by Timur Bakeyev <timur@com.bat.ru>
Jeremy.
(This used to be commit 059a2e30c9)
2007-10-10 10:56:32 -05:00
Jeremy Allison
f0fea42a75 r6252: Re-order position of become_root() to allow directory to be
read first.
Jeremy.
(This used to be commit 9fa32282eb)
2007-10-10 10:56:32 -05:00
Jeremy Allison
43710a45e8 r6249: Get the comparison the right way around...
Jeremy.
(This used to be commit 1d542eee57)
2007-10-10 10:56:32 -05:00
Gerald Carter
14ce1ed40c r6243: Yes. I *will* hate myself in the morning for this one.
I need to gather some more information to know if these
extra context id's may be used later.  But for now,
pw changes via CTL+ALT+DEL from win2k3sp1 clients work.
(This used to be commit e7189a4e4b)
2007-10-10 10:56:32 -05:00
Gerald Carter
1253a174f3 r6242: after talking to jeremy, we can actually consolidate
the 2 BOOL flags in dfs_redirect() down to one since
they both are used in essentially the same context
(from what we can tell).

Tested Win98SE, WinXP sp 1 & 2, Win2k3 sp1, and WIn2k Sp4.
All dfs operations still seem to work.
(This used to be commit 59ffacf59c)
2007-10-10 10:56:31 -05:00
Jeremy Allison
ecc6933a86 r6240: Fix for bug #2581. Add size limit (in kb) to stat cache.
Jeremy.
(This used to be commit 836b73d001)
2007-10-10 10:56:31 -05:00
Gerald Carter
b751f95a25 r6237: fix my breakage of WinXP sp2 msdfs support.
We did need the special case for RESOLVE_DFSPATH
in the findfirst() code.

Jeremy, please verify I haven't broken the allow_wcard
code you added to resolve_dfs_path()
(This used to be commit 29983398e2)
2007-10-10 10:56:31 -05:00
Jeremy Allison
e79e98a9f6 r6235: Partial fix for bugid #2581. Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
(This used to be commit 28772dfca1)
2007-10-10 10:56:31 -05:00
Jeremy Allison
d761233aba r6234: Fix for possible root squash nfs bugs from psz@maths.usyd.edu.au
Jeremy.
(This used to be commit dbf021a2e0)
2007-10-10 10:56:31 -05:00
Gerald Carter
466a825ce7 r6232: more cleanups; remove BUFFER3; rename BUFFER4 -> RPC_DATA_BLOB; rename REG_CREATE_VALE -> REG_SET_VALUE
(This used to be commit 28d433351c)
2007-10-10 10:56:30 -05:00
Gerald Carter
dc30062d71 r6231: Herb, I think this checkin was a mistake. Are you sure this is
what you meant to change?

Fix build breakage....
(This used to be commit b3643b732b)
2007-10-10 10:56:30 -05:00