1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-11 16:58:40 +03:00

480 Commits

Author SHA1 Message Date
Derrell Lipman
2ac502e29b r24388: - ACL retrieval provided incomplete information because the buffer pointer was
incremented too far in some circumstances.  In these cases, only the first
 of multiple concatenated strings would be seen.

- Working on bug 4649 pertaining to delete an ACL, this fixes the reported
 crash.  It appears to have been an incomplete switchover from malloc to
 talloc, as the memory was still being freed with SAFE_FREE.

 Deleting ACLs still doesn't work.  Although a valid request is sent to the
 server and a SUCCESS response is returned, the method that's used in
 libsmbclient for deleting ACLs seems to be incorrect.  In looking at the
 samba4 torture tests, it appears that we should be turning on the INHERIT
 flag if we want to delete the ACL.  (I could use some assistance on the
 proper flags to send, from anyone familiar with this stuff.)

- Apply patch from SATOH Fumiyasu to fix bug 4750.  smbc_telldir_ctx() was not
  returning a value useful to smbc_lseekdir_ctx().

Derrell
2007-10-10 12:29:39 -05:00
Stefan Metzmacher
0bc5a9cd01 r24123: add file_id_create() to some vfs modules
metze
2007-10-10 12:29:09 -05:00
Günther Deschner
e3d6dabcb9 r23827: Fix schema dump.
Guenther
2007-10-10 12:28:31 -05:00
Günther Deschner
0f0200c43c r23818: support LDAP_SERVER_SEARCH_OPTIONS_OID in adssearch.
Guenther
2007-10-10 12:28:29 -05:00
Günther Deschner
3f0ac6a27f r23817: Dump some more guids in adssearch.pl.
Guenther
2007-10-10 12:28:29 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Andrew Tridgell
43cd589773 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
e87bb12093 r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING file 2007-10-10 12:28:26 -05:00
Andrew Tridgell
c14aba93c0 r23795: more v2->v3 conversion 2007-10-10 12:28:26 -05:00
Andrew Tridgell
d0e89d246d r23785: use the GPLv3 boilerplate as recommended by the FSF and the license text 2007-10-10 12:28:23 -05:00
Jeremy Allison
c2f7ab1c17 r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
2007-10-10 12:28:21 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Günther Deschner
9535866f6f r23767: Add GTYPE_SECURITY_UNIVERSAL_GROUP to adsearch.pl as well.
Guenther
2007-10-10 12:23:54 -05:00
Michael Adam
b3e5082e10 r23714: but now:
This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
2007-10-10 12:23:48 -05:00
Michael Adam
ae23e6d04b r23713: Oops accidentially checked in the wrong file - sorry!
Michael
2007-10-10 12:23:48 -05:00
Michael Adam
0c03c78af8 r23712: This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
2007-10-10 12:23:47 -05:00
Michael Adam
26349c0b17 r23711: Refactor the actual creation of object into its own small function.
Michael
2007-10-10 12:23:47 -05:00
Michael Adam
8b81fbb7d9 r23706: Add a script to create domainusers,-groups and -aliases.
This is done via rpc client. The main purpose is to
be able to fill a domain controller with a large number
of users / groups easily. A the object names are
built as <prefix><num> where number ranges from a given
start number counting up until a given number of objects
has been created.

In a next step, I will submit scripts to add (many) users to
a group and to add a user to (many) groups.

Michael
2007-10-10 12:23:47 -05:00
Lars Müller
d26914c978 r23704: Add pam_pwd_expire feature as discussed on samba-technical.
This is a slightly modified version to set warn_pwd_expire to the
default value if 0, no, or a broken value is set.

This version also has one if statement less in get_config_item_int().

Thanks a lot to Andreas 'GlaDiaC' Schneider for this feature!
2007-10-10 12:23:46 -05:00
Jeremy Allison
fc6899a550 r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chown
return to correctly return NT_STATUS_INVALID_OWNER if it
should be disallowed. Matches better what W2K3R3 does.

NFSv4 ACL module owners, please examine these changes.

Jeremy.
2007-10-10 12:23:37 -05:00
Günther Deschner
865bdcacae r23484: When chasing AD referrals make sure to honor the base returned from the server.
Guenther
2007-10-10 12:23:20 -05:00
Jeremy Allison
932523cbb5 r23105: Add lchown to the vfs layer. We need this in the POSIX code.
Jeremy.
2007-10-10 12:22:46 -05:00
Derrell Lipman
7213b5ebec r22914: - Fixes bug 4599. A missing <code>if</code> statement forced subseqeuent
attempts to set attributes to fail.

- I also noticed that missing attributes were setting an invalid return string
  by getxattr(), e.g. if there was not group, the return string had "GROUP:;"
  instead of excluding the GROUP attribute entirely as it should.  The big
  problem with the way it was, is that the string could not then be passed to
  setxattr() and parsed.
2007-10-10 12:22:07 -05:00
Lars Müller
37f2191cd3 r22805: Inform in examples/pdb about the location of the external support for
the SQL backends.
2007-10-10 12:21:59 -05:00
Günther Deschner
5b4a4df26f r22794: Add "debug_state" and "silent" to pam_winbind.conf template. Honor the silent
argument when parsing pam configuration file options.

Guenther
2007-10-10 12:21:57 -05:00
Jeremy Allison
aa5a1591c6 r22591: Fix up the examples also.
Jeremy.
2007-10-10 12:19:49 -05:00
Michael Adam
e711005828 r22341: Fix build of examples/VFS: adapt include for new place of tdb... 2007-10-10 12:19:27 -05:00
Derrell Lipman
c65621e0b7 r22130: - Ensure that the libsmbclient example programs link with the libsmbclient
library that's part of the current tree, not with whatever happens to have
  been previously installed.
2007-10-10 12:19:15 -05:00
James Peach
1106db7ea1 r21762: Fix the build by enabling shared modules and adding the config.*
files. Add norify_watch and chflags operations. Fix a bunch of
warnings.
2007-10-10 12:18:29 -05:00
Jeremy Allison
8f3d530c5a r21714: Change the VFS interface to use struct timespec
for utimes - change the call to ntimes. This preserves
nsec timestamps we get from stat (if the system supports
it) and only maps back down to usec or sec resolution
on time set. Looks bigger than it is as I had to move
lots of internal code from using time_t and struct utimebuf
to struct timespec.
Jeremy.
2007-10-10 12:18:24 -05:00
Günther Deschner
97ce4ccea2 r21345: Smaller fixes for adssearch:
* get rid of horrible ads.h parsing
* add LDAP_SERVER_SHUTDOWN_NOTIFY_OID
* display hex bitmasks

Guenther
2007-10-10 12:17:57 -05:00
Günther Deschner
aa135c960e r21105: Quick fix for CLDAP reply without NetLogon attribute.
Guenther
2007-10-10 12:17:37 -05:00
Volker Lendecke
4610465d7f r20979: Fix description, thanks to Michael Adam <ma@sernet.de> 2007-10-10 12:17:22 -05:00
Gerald Carter
a209c30849 r20884: patch from Michael Adam <ma@sernet.de> to add new sambaTrustedDomainPassword object class 2007-10-10 12:17:18 -05:00
Stefan Metzmacher
5373897ef5 r20585: - allocate an OID range for LDB/LDAP extended operations
metze
2007-10-10 12:16:56 -05:00
Stefan Metzmacher
6fedd69f5e r20578: - allocate an OID range for samba4 LDB/LDAP Controls
- allocate an OID range for conflicting attributes/classes

metze
2007-10-10 12:16:56 -05:00
Volker Lendecke
ab0a41c13b r19857: Make the perfcounter compile after tdb changes 2007-10-10 12:16:03 -05:00
James Peach
fa69031d00 r19852: Fix the build for the VFS examples. Fixes bugzilla #3931. 2007-10-10 12:16:02 -05:00
Günther Deschner
8a2dded7fb r19745: For the fun of it, add an CLDAP client written in perl.
Guenther
2007-10-10 12:15:52 -05:00
Günther Deschner
27fbd85300 r19345: Allow better rootdse searches.
Guenther
2007-10-10 12:15:30 -05:00
Günther Deschner
d6849a83c0 r18697: Make sure that adssearch.pl does not
* chase referrals
* use paged search control

when using the LDAP change notify control for monitoring changes.

Guenther
2007-10-10 12:00:48 -05:00
Derrell Lipman
fc5b6e4bd8 r18012: Should fix bug 4018.
NetApp filers expect paths in Open AndX Request to have a leading slash.
Windows clients send the leading slash, so we should too.
2007-10-10 11:39:48 -05:00
Derrell Lipman
fa664b24b8 r18011: Should fix bug 3835.
Jeremy: requires your eyes...

If the remote connection timed out while cli_list() was retrieving its list of
files, the error was not returned to the user, e.g. via smbc_opendir(), so the
user didn't have a way to know to set the timeout longer and try again.  This
problem would occur when a very large directory is being read with a too-small
timeout on the cli.

Jeremy, although there were a couple of areas that needed to be handled, I
needed to make one change that you should bless, in libsmb/clientgen.c.  It
was setting

  cli->smb_rw_error = smb_read_error;

but smb_read_error is zero, so this had no effect.  I'm now doing

  cli->smb_rw_error = READ_TIMEOUT;

instead, and according to the OP, these (cumulative) changes (in a slightly
different form) solve the problem.

Please confirm this smb_rw_error change will have no other adverse effects
that you can see.

Derrell
2007-10-10 11:39:48 -05:00
Derrell Lipman
8e119b64f1 r18009: Fixes bug 4026.
This completes the work Jeremy began last week, disambiguating the meaning of
c_time.  (In POSIX terminology, c_time means "status Change time", not "create
time".)  All uses of c_time, a_time and m_time have now been replaced with
change_time, access_time, and write_time, and when creation time is intended,
create_time is used.

Additionally, the capability of setting and retrieving the create time have
been added to the smbc_setxattr() and smbc_getxattr() functions.  An example
of setting all four times can be seen with the program

  examples/libsmbclient/testacl

with the following command line similar to:

  testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt'

The -f option turns on the new mode which uses full time names in the
attribute specification (e.g. ACCESS_TIME vs A_TIME).
2007-10-10 11:39:47 -05:00
Andrew Bartlett
199a33ac80 r17487: Allocate some OID space for Samba4, so we don't trip on each other.
Andrew Bartlett
2007-10-10 11:38:37 -05:00
Jeremy Allison
330899ec30 r17367: Reverting the ab code. Note I'm not saying this
code is wrong or bad or anything, just that it
needs to be discussed & reviewed on the samba-technical
list before we add a platform-specific NFSv4 mapping.
That way lies a lot of future pain :-).
Jeremy.
2007-10-10 11:38:29 -05:00
Alexander Bokovoy
c085355c32 r17358: Re-add JFS2 NFS4 ACLs support, move readme for it into AIX-specific examples directory. 2007-10-10 11:38:28 -05:00
Alexander Bokovoy
72312cb2e2 r17353: Add support for JFS2 NFS4/AIXC and GPFS acls based on NFSv4 ACLs. 2007-10-10 11:38:27 -05:00
Gerald Carter
34ad8e183c r16998: patch from Paul Griffith <paulg@cs.yorku.ca> to fix compile of the test.c pdb file 2007-10-10 11:19:17 -05:00