1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

587 Commits

Author SHA1 Message Date
Jeremy Allison
488b59cfac Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
(This used to be commit bfbdb6324c)
2007-10-29 17:16:13 -07:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Simo Sorce
d80fcfce90 r25127: Add ol-schema-migrate.pl to the repo.
This script is useful for migrating OpenLDAP schema files to FDS/RHDS
lidf schema files.

License kindly updated to GPLv3+ at our request.

Simo.
(This used to be commit ab7770b34b)
2007-10-10 12:30:42 -05:00
Michael Adam
b6c64fab5e r25090: Fix a syntax error just introduced into the LDAP schema.
Michael
(This used to be commit 7dc68ce0fb)
2007-10-10 12:30:39 -05:00
Michael Adam
c6df77f63f r25088: Change the objectclass sambaTrustedDomainPassword to
have the current and possibly the previous trust password
stored as clear text passwords. (Previous use of NTPassword
was a mistake - this is a hash value.)

Michael
(This used to be commit 0beae52ff4)
2007-10-10 12:30:39 -05:00
Simo Sorce
df04cb69f7 r25057: Add a schema file ready to be used in Fedora/RedHat Directory Server
(This used to be commit 501e8b6c79)
2007-10-10 12:30:37 -05:00
Derrell Lipman
83fc92c82c 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
(This used to be commit 2ac502e29b)
2007-10-10 12:29:39 -05:00
Stefan Metzmacher
564e6841d6 r24123: add file_id_create() to some vfs modules
metze
(This used to be commit 0bc5a9cd01)
2007-10-10 12:29:09 -05:00
Günther Deschner
47d2f021c8 r23827: Fix schema dump.
Guenther
(This used to be commit e3d6dabcb9)
2007-10-10 12:28:31 -05:00
Günther Deschner
b8d696ebf0 r23818: support LDAP_SERVER_SEARCH_OPTIONS_OID in adssearch.
Guenther
(This used to be commit 0f0200c43c)
2007-10-10 12:28:29 -05:00
Günther Deschner
f406b6677c r23817: Dump some more guids in adssearch.pl.
Guenther
(This used to be commit 3f0ac6a27f)
2007-10-10 12:28:29 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
674b835241 r23799: updated old Franklin Street FSF addresses to new URL
(This used to be commit 43cd589773)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
9fa1c63578 r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit c676a97114)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
5b4c4181b4 r23797: started fixing old FSF addresses. Fixed pcap2nbench COPYING file
(This used to be commit e87bb12093)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
fbfaaa9993 r23795: more v2->v3 conversion
(This used to be commit c14aba93c0)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
58e9534300 r23785: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit d0e89d246d)
2007-10-10 12:28:23 -05:00
Jeremy Allison
2a9b4da0fa r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
(This used to be commit c2f7ab1c17)
2007-10-10 12:28:21 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Günther Deschner
f914b363da r23767: Add GTYPE_SECURITY_UNIVERSAL_GROUP to adsearch.pl as well.
Guenther
(This used to be commit 9535866f6f)
2007-10-10 12:23:54 -05:00
Michael Adam
c799a1e980 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
(This used to be commit b3e5082e10)
2007-10-10 12:23:48 -05:00
Michael Adam
1d95e049bb r23713: Oops accidentially checked in the wrong file - sorry!
Michael
(This used to be commit ae23e6d04b)
2007-10-10 12:23:48 -05:00
Michael Adam
459d01489f 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
(This used to be commit 0c03c78af8)
2007-10-10 12:23:47 -05:00
Michael Adam
4b1fbd17c4 r23711: Refactor the actual creation of object into its own small function.
Michael
(This used to be commit 26349c0b17)
2007-10-10 12:23:47 -05:00
Michael Adam
85f7c7127f 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
(This used to be commit 8b81fbb7d9)
2007-10-10 12:23:47 -05:00
Lars Müller
a3de7e9b9d 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!
(This used to be commit d26914c978)
2007-10-10 12:23:46 -05:00
Jeremy Allison
a0ac7a7f4c 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.
(This used to be commit fc6899a550)
2007-10-10 12:23:37 -05:00
Günther Deschner
0b86e40306 r23484: When chasing AD referrals make sure to honor the base returned from the server.
Guenther
(This used to be commit 865bdcacae)
2007-10-10 12:23:20 -05:00
Jeremy Allison
57d6318a0b r23105: Add lchown to the vfs layer. We need this in the POSIX code.
Jeremy.
(This used to be commit 932523cbb5)
2007-10-10 12:22:46 -05:00
Derrell Lipman
4a413b3043 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.
(This used to be commit 7213b5ebec)
2007-10-10 12:22:07 -05:00
Lars Müller
0484aca691 r22805: Inform in examples/pdb about the location of the external support for
the SQL backends.
(This used to be commit 37f2191cd3)
2007-10-10 12:21:59 -05:00
Günther Deschner
67a45aa26b r22794: Add "debug_state" and "silent" to pam_winbind.conf template. Honor the silent
argument when parsing pam configuration file options.

Guenther
(This used to be commit 5b4a4df26f)
2007-10-10 12:21:57 -05:00
Jeremy Allison
5b3d90e48b r22591: Fix up the examples also.
Jeremy.
(This used to be commit aa5a1591c6)
2007-10-10 12:19:49 -05:00
Michael Adam
256f506c5b r22341: Fix build of examples/VFS: adapt include for new place of tdb...
(This used to be commit e711005828)
2007-10-10 12:19:27 -05:00
Derrell Lipman
a8202531d8 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.
(This used to be commit c65621e0b7)
2007-10-10 12:19:15 -05:00
James Peach
70d5f417ab r21762: Fix the build by enabling shared modules and adding the config.*
files. Add norify_watch and chflags operations. Fix a bunch of
warnings.
(This used to be commit 1106db7ea1)
2007-10-10 12:18:29 -05:00
Jeremy Allison
4952fe368a 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.
(This used to be commit 8f3d530c5a)
2007-10-10 12:18:24 -05:00
Günther Deschner
2d675293d9 r21345: Smaller fixes for adssearch:
* get rid of horrible ads.h parsing
* add LDAP_SERVER_SHUTDOWN_NOTIFY_OID
* display hex bitmasks

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

metze
(This used to be commit 6fedd69f5e)
2007-10-10 12:16:56 -05:00
Volker Lendecke
8cf89d2532 r19857: Make the perfcounter compile after tdb changes
(This used to be commit ab0a41c13b)
2007-10-10 12:16:03 -05:00
James Peach
55170cb6a7 r19852: Fix the build for the VFS examples. Fixes bugzilla #3931.
(This used to be commit fa69031d00)
2007-10-10 12:16:02 -05:00
Günther Deschner
24faef672e r19745: For the fun of it, add an CLDAP client written in perl.
Guenther
(This used to be commit 8a2dded7fb)
2007-10-10 12:15:52 -05:00
Günther Deschner
2c3aa76510 r19345: Allow better rootdse searches.
Guenther
(This used to be commit 27fbd85300)
2007-10-10 12:15:30 -05:00
Günther Deschner
89100480e8 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
(This used to be commit d6849a83c0)
2007-10-10 12:00:48 -05:00
Derrell Lipman
44c1504c03 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.
(This used to be commit fc5b6e4bd8)
2007-10-10 11:39:48 -05:00
Derrell Lipman
40665edf5e 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
(This used to be commit fa664b24b8)
2007-10-10 11:39:48 -05:00
Derrell Lipman
5e44fc4cd4 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).
(This used to be commit 8e119b64f1)
2007-10-10 11:39:47 -05:00
Andrew Bartlett
46e1ce559e r17487: Allocate some OID space for Samba4, so we don't trip on each other.
Andrew Bartlett
(This used to be commit 199a33ac80)
2007-10-10 11:38:37 -05:00
Jeremy Allison
d42a96b3ec 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.
(This used to be commit 330899ec30)
2007-10-10 11:38:29 -05:00
Alexander Bokovoy
fbd04d65c5 r17358: Re-add JFS2 NFS4 ACLs support, move readme for it into AIX-specific examples directory.
(This used to be commit c085355c32)
2007-10-10 11:38:28 -05:00
Alexander Bokovoy
4cf5769331 r17353: Add support for JFS2 NFS4/AIXC and GPFS acls based on NFSv4 ACLs.
(This used to be commit 72312cb2e2)
2007-10-10 11:38:27 -05:00
Gerald Carter
23afde616d r16998: patch from Paul Griffith <paulg@cs.yorku.ca> to fix compile of the test.c pdb file
(This used to be commit 34ad8e183c)
2007-10-10 11:19:17 -05:00
Jeremy Allison
6d29166997 r16948: Sync the exmaples code from trunk.
Jeremy.
(This used to be commit 508ba05a8e)
2007-10-10 11:19:14 -05:00
Jeremy Allison
5bf62a0c3c r16943: Add Jim's code.
Jeremy.
(This used to be commit f131bf8f16)
2007-10-10 11:19:13 -05:00
Gerald Carter
46fab723d8 r16752: remove the 'socket options' setting from the shipped default smb.conf
(This used to be commit eac00a45ef)
2007-10-10 11:19:10 -05:00
Günther Deschner
ce815f38a7 r16719: Automatically chase referrals, support LDAP fast bind exended operation
and LDAP domain scope control.

Guenther
(This used to be commit 6df2a39110)
2007-10-10 11:19:09 -05:00
Derrell Lipman
9718506d35 r16550: Fix bug 3866. Thanks for the report!
Although I've never met a computer or compiler that produced pointers to
functions which are a different size than pointers to data, I suppose they
probably exist.  Assigning a pointer to a function is technically illegal in C
anyway.

Change casts of the option_value based on the option_name to use of variable
argument lists.

For binary compatibility, I've maintained but deprecated the old behavior of
debug_stderr (which expected to be passed a NULL or non-NULL pointer) and
added a new option debug_to_stderr which properly expects a boolean (int)
parameter.

Derrell
(This used to be commit c1b4c51053)
2007-10-10 11:18:59 -05:00
Günther Deschner
72bc37cfa4 r16521: Fix different extended_dn handling for win2k/2k3 (thanks to Frederic
Brin at Novell).

Guenther
(This used to be commit f19f781e15)
2007-10-10 11:18:57 -05:00
Günther Deschner
b86c19795a r15250: dump some more sids.
Guenther
(This used to be commit 2922c7f570)
2007-10-10 11:16:30 -05:00
Lars Müller
d2cf063e6b r15094: Replace ; by # where we have a comment and remove superfluous spaces at
the end of lines.
(This used to be commit 27044d23ff)
2007-10-10 11:16:22 -05:00
Günther Deschner
1014fa19b5 r15058: Add sample pam_winbind.conf file.
Guenther
(This used to be commit 01e46b8c6e)
2007-10-10 11:16:00 -05:00
Jeremy Allison
22dbd67708 r15018: Merge Volker's ipc/trans2/nttrans changes over
into 3.0. Also merge the new POSIX lock code - this
is not enabled unless -DDEVELOPER is defined.
This doesn't yet map onto underlying system POSIX
locks. Updates vfs to allow lock queries.
Jeremy.
(This used to be commit 08e52ead03)
2007-10-10 11:15:57 -05:00
Gerald Carter
2b86a5b4ed r14825: add support for max connections parameter
(This used to be commit 63efbdf005)
2007-10-10 11:15:49 -05:00
Jelmer Vernooij
2036c47c63 r14684: Remove obsolete file (belonged to pdb_xml)
(This used to be commit 15c36233fb)
2007-10-10 11:15:44 -05:00
Derrell Lipman
e836508704 r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500
Implement enhancement request 3505.  Two additional features are added here.
 There is now a method of saving an opaque user data handle in the smbc_
 context, and there is now a way to request that the context be passed to the
 authentication function.  See examples/libsmbclient/testbrowse.c for an example
 of using these features.
(This used to be commit 203b4911c1)
2007-10-10 11:15:42 -05:00
Gerald Carter
5133ab016e r14451: In order to get pdb_ldap searching for SID_NAME_ALIAS
groups in the ${MACHINESID} and S_1-5-32 domains correctly,
I had to add a substr search on sambaSID.

* add substr matching rule to OpenLDAP schema
  (we need to update the other schema as will since this
  is a pretty important change).  Sites will need to
  - install the new schema
  - add 'indea sambaSID   sub' to slapd.conf
  - run slapindex

* remove uses of SID_NAME_WKN_GRP in pdb_ldap.c
(This used to be commit 2c0a46d731)
2007-10-10 11:15:30 -05:00
Günther Deschner
e54786b535 r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.
* Fix a couple of related parsing issues.
* in the info3 reply in a samlogon, return the ACB-flags (instead of
  returning zero)

Guenther
(This used to be commit 5b89e8bc24)
2007-10-10 11:10:25 -05:00
Gerald Carter
b84c86f7c9 r13677: patch from Max N. Boyarov <m.boyarov@sam-solutions.net>
Prevent div/0 when sysconf(_SC_NPROCESSORS_ONLN) fails.
(This used to be commit 9a33525552)
2007-10-10 11:10:22 -05:00
Günther Deschner
c1ffb8d9bc r13410: Dump a netbootGUID as a GUID.
Guenther
(This used to be commit 9b19a68456)
2007-10-10 11:09:59 -05:00
Volker Lendecke
e91aca5158 r13366: Add popt to the include path for examples/VFS. The modules themselves don't
use that, but includes.h fails in environments where there's no system popt
around. As the modules don't need that anyway, porting the check whether to
use the system one or our own seems a bit overkill.

Thanks to Michael Adam <ma@SerNet.DE>.

Volker
(This used to be commit 04cbde5956)
2007-10-10 11:06:26 -05:00
Volker Lendecke
9ca890e414 r13343: More sql cleanup
(This used to be commit bd1be2388e)
2007-10-10 11:06:25 -05:00
Günther Deschner
8b54e0b2a0 r13290: Adding Account Policy LDAP attributes for eDirectory schema.
Guenther
(This used to be commit de012e33a7)
2007-10-10 11:06:21 -05:00
Jim McDonough
661be1d332 r13187: IBM Tivoli Directory Server schema updates from John Janosik
<jpjanosi@us.ibm.com>
(This used to be commit d45cc5e4f3)
2007-10-10 11:06:16 -05:00
Derrell Lipman
673c356488 r12852: r12150@cabra: derrell | 2006-01-11 13:21:14 -0500
Although RTLD_NEXT was not working properly a number of years ago, it seems to be now.  Replace dlopen(/lib/libc...) with direct use of RTLD_NEXT
(This used to be commit 2b48665006)
2007-10-10 11:06:04 -05:00
Volker Lendecke
933a8ec57e r12839: - apply changes from svn r4963 also for VFS configure - KRB5_CONFIG should not
be used - rename it to KRB5CONFIG

Thanks to Björn Jacke <bj@sernet.de>

Volker
(This used to be commit 9c44fef5be)
2007-10-10 11:06:04 -05:00
Derrell Lipman
96d0d186db r12759: r12128@cabra: derrell | 2006-01-07 15:34:01 -0500
Incorporate a number of changes suggested by David Collier-Brown  Thanks, David!
(This used to be commit 0ae65b9af5)
2007-10-10 11:06:03 -05:00
Derrell Lipman
9a8ca1901c r12757: r12126@cabra: derrell | 2006-01-03 15:21:36 -0500
added flag to not request authentication information
(This used to be commit 8396c4b26c)
2007-10-10 11:06:02 -05:00
Derrell Lipman
cbc97b4e5a r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500
allow for arbitrary option value types
(This used to be commit 64c8e32b63)
2007-10-10 11:06:00 -05:00
Derrell Lipman
e13d0cb3ec r12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500
bug (enhancement) #2651: add option to log debug messages to stderr instead of stdout
(This used to be commit 4182eb99af)
2007-10-10 11:05:59 -05:00
Simo Sorce
d186ff5072 r12497: add a simplex option
better usage message
(This used to be commit c007f20c95)
2007-10-10 11:05:58 -05:00
Simo Sorce
b7eec4e856 r12495: Crackcheck utility enhancement based on patch sent by Tom Geissler
(This used to be commit aa34304f61)
2007-10-10 11:05:58 -05:00
Derrell Lipman
494e332220 r12468: r12033@cabra: derrell | 2005-12-24 21:03:45 -0500
actually add the new test program
(This used to be commit e3bab0cc43)
2007-10-10 11:05:56 -05:00
Derrell Lipman
9d36d5ee2d r12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500
add another libsmbclient test program
(This used to be commit 133cd3952b)
2007-10-10 11:05:56 -05:00
Günther Deschner
3e80ef29a6 r12452: Fix Bug #3053 to allow esp. older eDirectory releases to load our LDAP
schema.

Maybe "Base64 encoded user parameter string" is not much clearer then
"munged dial" - anyone got a better description ?

Guenther
(This used to be commit 02ccde5f47)
2007-10-10 11:05:56 -05:00
Günther Deschner
c32197dd22 r12336: A couple of fixes and enhancements for adssearch.pl (espc. to debug
GPOs).

sid2string fix from Michael James <michael@james.st>.

Guenther
(This used to be commit 9424b65c70)
2007-10-10 11:05:53 -05:00
Derrell Lipman
765daab643 r12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500
1. Fix a crash bug which should have reared its ugly head ages ago, but for
    some reason, remained dormant until recently.  The bug pertained to
    libsmbclient doing a structure assignment of a cli after having opened a
    pipe.  The pipe open code makes a copy of the cli pointer that was passed
    to it.  If the cli is later copied (and that cli pointer that was saved
    is no longer valid), the pipe code will cause a crash during shutdown or
    when the copied cli is closed.

 2. The 'type' field in enumerated shares was not being set correctly with
    the new RPC-based mechanism for enumerating shares.
(This used to be commit 62a02b8f2a)
2007-10-10 11:05:50 -05:00
Derrell Lipman
44293df2ae r12098: r10797@cabra: derrell | 2005-12-06 12:09:00 -0500
fixed another memory leak and reverted an (incorrect) fix from yesterday
(This used to be commit 8a86d7bddc)
2007-10-10 11:05:44 -05:00
Derrell Lipman
a54f9eddce r12080: r10673@cabra: derrell | 2005-12-05 13:22:34 -0500
Correct some memory and file descriptor leaks.

 This should fix bugs 3257, 3267 and 3273.
(This used to be commit c5781c9cf5)
2007-10-10 11:05:44 -05:00
Gerald Carter
7b3d349251 r11942: patch from Marcin to fix the mkdir() in perfcount daemon
(This used to be commit 3e05e88bb6)
2007-10-10 11:05:38 -05:00
Volker Lendecke
d75de28c9e r11784: Fix minor glitch found by Rainer Weikusat <rainer.weikusat@sncag.com> -- Thanks
(This used to be commit 1128d054dd)
2007-10-10 11:05:28 -05:00
Gerald Carter
e04e7e1ffc r11645: mklogon updates from Ricky Nance
(This used to be commit 5bfa88225c)
2007-10-10 11:05:22 -05:00
Gerald Carter
77460a9075 r11579: syncing up perf counter code cfrom trunk
(This used to be commit 59c00924b6)
2007-10-10 11:05:21 -05:00
Gerald Carter
38b54d063d r11577: adding perl interpreter she-bang to top of parselog.pl script
(This used to be commit db4eb72142)
2007-10-10 11:05:20 -05:00
Gerald Carter
0708480567 r11549: fixing GPL notices
(This used to be commit 26e9c1c1fa)
2007-10-10 11:05:19 -05:00
Gerald Carter
d1e1766c08 r11548: adding simple script to tail syslog and write to eventlog tdb
(This used to be commit 9337a286c9)
2007-10-10 11:05:19 -05:00
Jeremy Allison
a5b339c799 r11232: Added ab's POSIX statvfs vfs call. Sorry for the delay ab.
Jeremy.
(This used to be commit af85458067)
2007-10-10 11:05:08 -05:00
Derrell Lipman
97351bc5fc r11130: r10092@cabra: derrell | 2005-10-17 15:29:03 -0400
let's now actually add the new test file
(This used to be commit b58237f98d)
2007-10-10 11:05:01 -05:00
Derrell Lipman
f398183555 r11129: r10090@cabra: derrell | 2005-10-17 15:26:27 -0400
added example to read a file and test download time
(This used to be commit 4fad0c49b5)
2007-10-10 11:05:01 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7)
2007-10-10 11:04:48 -05:00
Gerald Carter
3c6b0f9655 r10003: in the rush for 10k, I forgot to run add the rest of Chris' libmsrpc files
(This used to be commit 32bebc452d)
2007-10-10 11:03:30 -05:00
Günther Deschner
9454668a90 r9523: Fix password history for eDirectory
(by allowing to store more then 1 password history entry in LDAP...)

Thanks to Bernhard Borgmann @ Novell for showing me how to debug
eDirecory.

Guenther
(This used to be commit a6e8de5c3c)
2007-10-10 11:01:12 -05:00
Jeremy Allison
f98f86394a r9483: Changed DIR to SMB_STRUCT_DIR because of the amazing stupidity of a UNIX vendor
not understanding abstract data types :-(.
Jeremy.
(This used to be commit be5b4e2fa3)
2007-10-10 11:01:11 -05:00
Lars Müller
042d4b86f5 r8657: Add -fPIC which is the case for all other Samba shared libs.
Fix bug #2060.
(This used to be commit 8c09716c91)
2007-10-10 11:00:14 -05:00
Gerald Carter
2bba724fc5 r8387: moving wins_hook to scripts directory
(This used to be commit 9d507b218d)
2007-10-10 11:00:04 -05:00
Gerald Carter
b99ae51374 r8384: merging clutter fixes from release branch
(This used to be commit cbe74c0910)
2007-10-10 10:59:56 -05:00
John Terpstra
c379e33da6 r8188: Update from Dave Collier-Brown.
(This used to be commit 65cfa2a950)
2007-10-10 10:58:17 -05:00
Günther Deschner
1affb32caa r8143: Fix generate_parm_table.py:
* Correctly substitute "\" as default winbind separator.
* Use default testparm-location.

Guenther
(This used to be commit ba0ca4c0c6)
2007-10-10 10:58:11 -05:00
Gerald Carter
3fe2485d4b r8140: adding missing module
(This used to be commit 79d03b1919)
2007-10-10 10:58:11 -05:00
John Terpstra
02886574aa r8031: Adding contributed mklogon scripts.
(This used to be commit aaca9ea8a3)
2007-10-10 10:58:09 -05:00
John Terpstra
0e5a5418bc r7976: Adding debugging info.
(This used to be commit 97ee7c970c)
2007-10-10 10:58:05 -05:00
Jeremy Allison
f2f55d703d r7963: Add aio support to 3.0.
Jeremy.
(This used to be commit 1de27da470)
2007-10-10 10:58:05 -05:00
Jeremy Allison
e55d945ff1 r7952: Fix for bug #2826 pointed out by Jiri Klouda <jk@zg.cz>.
Wrong return val for symlink and readlink.
Jeremy.
(This used to be commit f3c4d5a957)
2007-10-10 10:58:04 -05:00
Jeremy Allison
ff7e5c2673 r7893: Add in the extra parameters to opendir() to fix the large directory/insane app
problem. Rev vfs version. Doesn't change the normal codepath.
Jeremy.
(This used to be commit 0f03a6bdcd)
2007-10-10 10:58:02 -05:00
Jeremy Allison
19ca97a70f r7882: Looks like a large patch - but what it actually does is make Samba
safe for using our headers and linking with C++ modules. Stops us
from using C++ reserved keywords in our code.
Jeremy
(This used to be commit 9506b8e145)
2007-10-10 10:58:00 -05:00
Derrell Lipman
e317034997 r7168: Updating file times from libsmbclient was not working for win98. Although
the function that was being used to set attributes is a core protocol
function (SMBsetatr = 0x09), it does not appear to work on win98.  As a
temporary measure, when file times are to be set, this version opens the
file and uses SMBsetattrE = 0x22 instead.  (The other advantage of this
function over the original one is that it supports setting access time as
well as modification time.)

The next step, the proper solution if it can be made to work, is to write
functions that use TRANS2_SET_PATH_INFO instead.
(This used to be commit bab0bf7f4f)
2007-10-10 10:57:04 -05:00
Derrell Lipman
38c5136ce1 r7156: file was missing; svn isn't smart enough to even notify me. sigh.
(This used to be commit fce48fa1b4)
2007-10-10 10:57:03 -05:00
Derrell Lipman
432878c80e r7153: add better test facilities to testutime
(This used to be commit d763c739a6)
2007-10-10 10:57:03 -05:00
Gerald Carter
4a5a402ac4 r6782: rename for consistency
(This used to be commit 86724c5c5f)
2007-10-10 10:56:54 -05:00
Derrell Lipman
7a8ee79925 r6501: correct deprecated lvalue casts in testsuite/libsmbclient
(This used to be commit 6d22c3c343)
2007-10-10 10:56:43 -05:00
Derrell Lipman
eefc6f0ab4 r6157: 'editorial changes' to example code
(This used to be commit fa0294ddbf)
2007-10-10 10:56:25 -05:00
Derrell Lipman
8e6b4b9867 r6151: additional examples/tests for libsmbclient
(This used to be commit a3bd496c92)
2007-10-10 10:56:25 -05:00
Derrell Lipman
9840db418b r6149: Fixes bugs #2498 and 2484.
1. using smbc_getxattr() et al, one may now request all access control
   entities in the ACL without getting all other NT attributes.
2. added the ability to exclude specified attributes from the result set
   provided by smbc_getxattr() et al, when requesting all attributes,
   all NT attributes, or all DOS attributes.
3. eliminated all compiler warnings, including when --enable-developer
   compiler flags are in use.  removed -Wcast-qual flag from list, as that
   is specifically to force warnings in the case of casting away qualifiers.

Note: In the process of eliminating compiler warnings, a few nasties were
      discovered.  In the file libads/sasl.c, PRIVATE kerberos interfaces
      are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED
      kerberos interfaces are being used.  Someone who knows kerberos
      should look at these and determine if there is an alternate method
      of accomplishing the task.
(This used to be commit 994694f7f2)
2007-10-10 10:56:24 -05:00
Derrell Lipman
7387dab585 r6126: added utility for testing smbc_stat()
(This used to be commit e1df648ea1)
2007-10-10 10:56:23 -05:00
Derrell Lipman
fbc611f431 r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; provided more complete libsmbclient testbrowse utility
(This used to be commit 15736b97c8)
2007-10-10 10:56:22 -05:00
Jeremy Allison
fa6085a5bf r5847: Fixes from Lars Müller and Vince Brimhall @Novell for NDS
schema.
Jeremy.
(This used to be commit 0d3075b2c0)
2007-10-10 10:56:05 -05:00
Günther Deschner
04564f690f r5743: Add perl-script to check for multiple LDAP-entries on request of Richard
Sharpe.

Users my run this script after they have vampired a windows domain
controller to verify their system has no double sids, double uids, etc.

Guenther
(This used to be commit 31bd709a41)
2007-10-10 10:55:59 -05:00
Jelmer Vernooij
64b9f829cf r5705: Have unknown_6 default to 1260 (fixed #892)
(This used to be commit 710ce847a7)
2007-10-10 10:55:56 -05:00
Jim McDonough
90dfded4df r5689: Allow for better protection of sensitive attributes in IBM Directory Server.
(This used to be commit dafdd8d074)
2007-10-10 10:55:55 -05:00
Jim McDonough
a3ee24ec7f r5600: Bring IBM Directory Server schema up to date with openldap schema
(This used to be commit 639de6afc0)
2007-10-10 10:55:49 -05:00
Günther Deschner
9bdf6cdbf1 r5444: Add adssearch.pl utility (on volkers request).
Added to samba3 due to some header and machine-account dependencies,
although it's possibly of more interest to samba4 developers.

adssearch.pl is a kind of ldapsearch + dump-filters for various
ADS-attributes. It can also register asynchronous change notifications.

./adssearch.pl -h w2k3host -D administrator@MY.REALM.NET -x -w mypass -n

and *any* change in your entire DIT will show up immediately (after a
second change of an object even as object diff). It's very interesting
to see the interaction of GPOs, the various steps of account
modification with dsa.msc, etc.

Gracefully ignore some parts of adssearch.pl that are rather immature...

Guenther
(This used to be commit fd947b5ee0)
2007-10-10 10:55:40 -05:00
Gerald Carter
df52925865 r5132: netscape DS 5.2 schema update from Richard Renard <rrenard@idealx.com>
(This used to be commit 33ac88c6a7)
2007-10-10 10:55:29 -05:00
Gerald Carter
12ce2c5aca r5131: BUG 2290: don;t call mkversion.sh since we don't have it in this directory
(This used to be commit 2ddcb64381)
2007-10-10 10:55:28 -05:00
Tim Potter
2eab58d3fd r5112: Fix for shared object creation in examples. Bugzilla #2058.
(This used to be commit 8e5db6f08c)
2007-10-10 10:55:15 -05:00
Tim Potter
e7eb70928c r5111: Fix up changed prototype for setsampwent pdb function.
(This used to be commit 3317482020)
2007-10-10 10:55:15 -05:00
Gerald Carter
575ff39625 r5060: BUG 2286: fix typoe on sambaConfig oc definition
(This used to be commit e2ce048654)
2007-10-10 10:55:13 -05:00
Gerald Carter
b1288c61a9 r4965: comment out some unused attributes and oc's
(This used to be commit d95c9c4d74)
2007-10-10 10:55:09 -05:00
Günther Deschner
b4afdc08d5 r4925: Migrate Account Policies to passdb (esp. replicating ldapsam).
Does automated migration from account_policy.tdb v1 and v2 and offers a
pdbedit-Migration interface. Jerry, please feel free to revert that if
you have other plans.

Guenther
(This used to be commit 75af83dfcd)
2007-10-10 10:55:08 -05:00
Gerald Carter
eb44d99e9e r4873: example delete printer script for use with cups
(This used to be commit c646829e32)
2007-10-10 10:55:06 -05:00
Gerald Carter
e86235fbdc r4867: Removing smbldap-tools from the svn tree. I'll include
the latest version in the actual release tarballs.
Have spoken to the idealx developers about this.

Updated README to reflect the changte for people using svn.

Removed ldapsync.pl since it is no longer needed when using
the smbldap-tools (only keep things you support).
(This used to be commit f745e5119f)
2007-10-10 10:55:03 -05:00
Gerald Carter
704862b687 r4855: add some smb.conf script for add/delete/change share and addprinter hooks
(This used to be commit 073592b7ad)
2007-10-10 10:54:00 -05:00
Jelmer Vernooij
1ffbe8fec8 r4653: Output file of "test" pdb backend should be called test.so
(This used to be commit 95c8727045)
2007-10-10 10:53:50 -05:00
Jeremy Allison
c5dcd2d572 r4092: Bring into line with new *alloc rules.
Jeremy.
(This used to be commit 2ed86ac584)
2007-10-10 10:53:33 -05:00
Jeremy Allison
c7e532496b r3855: Sync up with the one in the main source dir (yes, this should probably
be a symlink...).
Jeremy.
(This used to be commit 5b0da25796)
2007-10-10 10:53:21 -05:00
Jeremy Allison
a8caf25bd8 r3644: Fixup examples VFS compile.
Jeremy.
(This used to be commit dfa910e4ab)
2007-10-10 10:53:11 -05:00
Gerald Carter
1e8cb54308 r3088: update nds schema file from Uli Iske <iske@elkb.de>
(This used to be commit 3e28c57695)
2007-10-10 10:53:01 -05:00