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

532 Commits

Author SHA1 Message Date
Derrell Lipman
76ba37ac46 Missed a few 'deprecated' markers 2008-03-03 18:25:49 -05:00
Derrell Lipman
a67f96fbe9 Continued revamping of libsmbclient.
- James suggested using gcc's "deprecated" attribute to mark the context
  structure fields to generate warnings.  This creates a scenario with the
  best of all worlds.  I'm able to move to an organization that more easily
  allows future enhancements, while avoiding any mandatory changes by
  applications.  Thanks, James!

- Updated WHATSNEW.txt so that it accurately reflects the current state of
  affairs.

Derrell
2008-03-03 18:13:33 -05:00
Derrell Lipman
93580bce83 Remove use of deprecated function 2008-03-02 16:21:48 -05:00
Derrell Lipman
64b7150d92 Additional revamped libsmbclient documentation
- Ensured that all public functions have documentation in libsmbclient.h
- Reformatted for "proper" indentation
- Re-added temporarily-disabled alternate authentication function capability

Derrell
2008-03-01 20:47:22 -05:00
Derrell Lipman
d4b4bae8de Initial revamp of the libsmbclient interface.
The libsmbclient interface has suffered from difficulty of improvement and
feature enrichment without causing ABI breakage.  Although there were a number
of issues, the primary ones were:

(a) the user of the library would manually manipulate the context structure
    members, meaning that nothing in the context structure could change other
    than adding stuff at the end;

(b) there were three methods of setting options: setting bits in a flags field
    within the context structure, setting explicit options variables within an
    options structure in the context structure, and by calling the
    smbc_option_set() function;

(c) the authentication callback did not traditionally provide enough
    information to the callee which required adding an option for a callback
    with a different signature, and now there are requests for even more
    information at the callback, requiring yet a third signature and option to
    set it (if we implement that feature).

This commit provides a reorganization of the code which fixes (a) and (b).
The context structure is now entirely opaque, and there are setter and getter
functions for manipulating it.  This makes maintaining ABI consistency much,
much easier.

Additionally, the options setting/getting has been unified into a single
mechanism using smbc_option_set() and smbc_option_get().

Yet to be completed is a refactoring of the authentication callback (c).

The test programs in examples/libsmbclient have been modified (if necessary;
some applications require no changes at all) for the new API and a few have
been minimally tested.

Derrell
2008-03-01 20:47:22 -05:00
Karolin Seeger
be5ee4999e Add mount.cifs as a wrapper for mount.cifs.
Karolin
2008-02-28 15:53:43 +01:00
Derrell Lipman
df995eddbd add a test program for the new ftruncate functionality 2008-02-26 21:46:08 -05:00
Günther Deschner
bc0b68709c Dump msDS-SupportedEncryptionTypes in adssearch.
Guenther
2008-01-28 19:22:17 +01:00
Derrell Lipman
f5f46de404 Add a program to test repeated calls to smbc_getxattr(). 2008-01-17 11:46:41 -05:00
Derrell Lipman
15ef5e4884 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test 2008-01-17 09:29:52 -05:00
Derrell Lipman
5a4a7aec76 Add some additional libsmbclient test programs.
testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()

Derrell
2008-01-17 09:26:36 -05:00
Alexander Bokovoy
e342ca0d93 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.
2008-01-17 16:59:29 +03:00
Alexander Bokovoy
75cc086614 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.
2008-01-17 14:57:35 +03:00
Jeremy Allison
bcc94aed6f Fix the mess that ab just made of the new VFS code.
NEEDS MORE TESTING !
Jeremy.
2008-01-16 17:22:31 -08:00
Derrell Lipman
9d75ea577b Modify testread example to loop using same context.
There's been a problem seen where open/read/close a number of times causes
open failures eventually.  This program has been modified to create the
context once and then loop requesting file names to open/read/close.

This program also demonstrates the current error in cli_read() where it
returns an error instead of length 0 upon end of file.

Derrell
2008-01-16 14:41:11 +00:00
Derrell Lipman
296a6783fb Replace GetTimeOfDay() with gettimeofday() in example program.
GetTimeOfDay() seems to no longer be exported.  For the smbsh example, just
use the native gettimeofday() for now.
2008-01-16 14:37:40 +00:00
Derrell Lipman
01f6a4cca7 Add a (very!) trivial cache to the example authentication callback. 2008-01-16 14:35:44 +00:00
Derrell Lipman
3a61e663e5 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2008-01-15 13:58:47 +00:00
Michael Adam
dcb5034acd Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>
Michael
2008-01-14 15:46:01 +01:00
Derrell Lipman
913c335d21 Fix smbc_listxattr() and friends (bug #5189)
When the capability of using full names for DOS attributes was added, a bug
was introduced which caused the wrong number of bytes to be returned.  This
patch to smbc_listxattr_ctx() fixes the problem.

Thanks to Jack Schmidt for this patch.

Derrell
2008-01-13 17:10:06 -05:00
Derrell Lipman
2f43284244 Fix compile and linking errors since last this code was tested 2008-01-13 12:07:18 -05:00
Michael Adam
3958abffaf Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().
Michael
2008-01-11 01:27:05 +01:00
Michael Adam
a52cfb7d77 Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().
Michael
2008-01-11 01:27:05 +01:00
Michael Adam
c8ae7d095a Remove redundant parameter fd from SMB_VFS_WRITE().
Michael
2008-01-10 15:49:35 +01:00
Michael Adam
a8fc2ddad8 Remove redundant parameter fd from SMB_VFS_READ().
Michael
2008-01-10 15:33:51 +01:00
Günther Deschner
88d6683872 Remove unused string.
Guenther
2008-01-10 13:02:10 +01:00
Günther Deschner
8f411753b2 Fix build warning for libsmbclient example.
Guenther
2008-01-09 10:20:44 +01:00
Michael Adam
ef7c9a765b Fix returns in void functions.
Michael
2008-01-08 22:51:21 +01:00
Michael Adam
c88555ce45 Fix examples/VFS after VFS API changes.
Michael
2008-01-08 22:20:13 +01:00
Michael Adam
4f3ab2c406 Remove redundant parameter fd from SMB_VFS_LOCK().
Michael
2008-01-07 16:38:23 +01:00
Michael Adam
2ad66050a0 Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
Michael
2008-01-07 15:59:02 +01:00
Michael Adam
fbb193db3e Remove redundant parameter fd from SMB_VFS_FCHOWN().
Michael
2008-01-07 15:59:02 +01:00
Michael Adam
a54d5604da Remove redundant parameter fd from SMB_VFS_FCHMOD().
Michael
2008-01-07 15:59:02 +01:00
Michael Adam
0b86c420be Remove redundant parameter fd from SMB_VFS_FSTAT().
Michael
2008-01-07 15:59:01 +01:00
Michael Adam
8f83c9a7b2 Remove redundant parameter fd from SMB_VFS_FSYNC().
Michael
2008-01-07 15:59:01 +01:00
Michael Adam
df929796f2 Remove redundant parameter fd from SMB_VFS_LSEEK().
Michael
2008-01-07 15:59:01 +01:00
Michael Adam
8c4901a19a Remove redundant parameter fd from SMB_VFS_PWRITE().
Michael
2008-01-07 15:59:01 +01:00
Michael Adam
d9d6775878 Adapt fset_nt_acl() and fget_nt_acl() in examples/VFS/ to vfs prototype change.
Michael
2008-01-07 01:04:55 +01:00
Michael Adam
73e28806ce Remove unneeded parameter fd from SMB_VFS_PREAD().
Michael
2008-01-07 00:14:19 +01:00
Karolin Seeger
e811b9f3bb Fix typo 2007-11-09 12:11:30 +01:00
Michael Adam
a0d595c227 The FSF has moved around a lot. This fixes their Mass Ave address.
This adapts r23801 / 87c91e4362c51819032bfbebbb273c52e203b227
to files just added by cherry-pick.
Michael
2007-11-09 11:20:01 +01:00
Michael Adam
1b6cf93992 Find and fix more GPL2 -> GPL3.
Jeremy.

This adapts r23780 / c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f
for files added by cherry-pick.
2007-11-09 11:20:00 +01:00
Michael Adam
78a2344fe7 r23714: This script allows for adding lists of users (or other objects)
to lists of groups (or aliases). Useful for creating large test
scenarios.

Michael
(cherry picked from commit b3e5082e105f6eaeed51e9a42d525d811e7155ee)
2007-11-09 11:19:58 +01:00
Michael Adam
852570059c r23711: Refactor the actual creation of object into its own small function.
Michael
(cherry picked from commit 26349c0b173e8baf6fa43deb39cb2bfdb31bf18e)
2007-11-09 11:19:57 +01:00
Michael Adam
79414f8bfa 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
(cherry picked from commit 8b81fbb7d998eda65978a772f2194b4a3de467f9)
2007-11-09 11:19:56 +01:00
Jeremy Allison
bfbdb6324c Add in the recvfile entry to the VFS layer with a default
implementation. Needed for the zero-copy write code.
Jeremy.
2007-10-29 17:16:13 -07:00
Jeremy Allison
f35a266b3c 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.
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9 [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch. 2007-10-10 15:34:30 -05:00
Simo Sorce
ab7770b34b 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.
2007-10-10 12:30:42 -05:00
Michael Adam
7dc68ce0fb r25090: Fix a syntax error just introduced into the LDAP schema.
Michael
2007-10-10 12:30:39 -05:00