summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* s4: Call va_end() after all va_start()/va_copy() calls.Andrew Kroeger2009-06-181-5/+9
| | | | | | | | This corrects the issues reaised in bug #6129, and some others that were not originally identified. It also accounts for some code that was in the original bug report but appears to have since been made common between S3 and S4. Thanks to Erik Hovland <erik@hovland.org> for the original bug report.
* s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty2009-06-172-4/+6
| | | | | | | | | | | | This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
* examples:s2→s3-ldif-convert-script: fix objectclass recognitionBjörn Jacke2009-06-121-2/+2
| | | | | | objectclasses are case insensitive. we used to convert only LDAP objects with the typical UpperLower case for sambaAccount and sambaGroupMapping and ignored any other case writings
* s3-examples: fix usage for eventlog example script.Günther Deschner2009-06-081-1/+1
| | | | Guenther
* s3-examples: make sure to match correct key name in adssearch.Günther Deschner2009-04-151-1/+1
| | | | Guenther
* s3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.Günther Deschner2009-04-061-1/+1
| | | | | | Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>. Guenther
* Ensure parameter types match format stringDerrell Lipman2009-03-274-18/+38
|
* s3:example/VFS: fix the buildStefan Metzmacher2009-02-242-4/+8
| | | | metze
* s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat structTim Prouty2009-02-192-3/+3
| | | | | Since file_id_create_dev is incompatible with the concept of file_ids, it is now static and in the one file that needs it.
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-142-2/+4
| | | | | | | - Revert Tim's changes for the moment. I need to see what the issue is and arrange to use "struct statvfs" if at all possible. Derrell
* s3 libsmbclient: Fix fstatvfs to be more portableTim Prouty2009-02-132-4/+2
| | | | | | | | | | | The statvfs struct isn't guaranteed to be portable across operating systems. Since libsmbclient isn't actually calling statvfs and just using the statvfs struct to store similar information, this patch adds a new portable smbc_statvfs struct. This fixes a few of the failures in the build farm introduced by: ae259575c447e61665c8e7070c476914161b953f Derrell, please check.
* [Bug 6069] Add a fstatvfs function for libsmbclientDerrell Lipman2009-02-123-0/+228
| | | | | | - port functionality from v3_3_test to master Derrell
* examples/VFS: fix the configure and make with the new directory layoutStefan Metzmacher2009-02-054-15/+17
| | | | metze
* Extend NTIMES to allow setting create_timetodd stecher2009-01-232-4/+4
| | | | | | | | | 1) Add in smb_file_time struct to clarify code and make room for createtime. 2) Get and set create time from SMB messages. 3) Fixup existing VFS modules + examples Some OS'es allow for the setting of the birthtime through kernel interfaces. This value is generically used for Windows createtime, but is not settable in the code today.
* examples: Avoid bashism in perfcount.init.Karolin Seeger2009-01-051-3/+3
| | | | | | | | This fixes bug #6000. Thanks to the Debian Samba package maintainers for providing the patch! Remove trailing whitespaces. Karolin
* Revert "examples: Avoid bashism in perfcount.init."Karolin Seeger2009-01-051-1/+1
| | | | This reverts commit 73875cd344608b591fa884ab99b5f3a10550c149.
* examples: Avoid bashism in perfcount.init.Karolin Seeger2009-01-051-3/+3
| | | | | | | | This fixes bug #6000. Thanks to the Debian Samba package maintainers for providing the patch! Remove trailing whitespaces. Karolin
* pam_winbind: re-add mkhomedir option.Günther Deschner2008-10-101-0/+3
| | | | Guenther
* Update vfs version as I've added a const to the security_descriptor paramter ↵Jeremy Allison2008-10-072-2/+2
| | | | | | | in fset_nt_acl(). Need to watch the build farm to make sure I haven't broken the AIX or Solaris ACL modules. Jeremy.
* examples/libsmbclient: fix Makefile after merged build patch changes.Michael Adam2008-09-171-18/+18
| | | | | | | New variable FLAGS in source3/Makefile.in introduced recursive variable FLAGS in Makefile.internal. Michael
* examples/libsmbclient: adapt to new samba3 source dir "source3/Michael Adam2008-09-172-3/+3
| | | | Michael
* libsmbclient examples: source/bin to the library search path for smbwrapper ↵Michael Adam2008-08-211-1/+1
| | | | | | | build Michael (This used to be commit fe62098666a16b31b025867f273d407e77152c4c)
* libsmbclient examples: add Makefile.internal.in for building from a samba sourceMichael Adam2008-08-211-0/+138
| | | | | | | Without needing to install libsmbclient to /usr/local/samba first. Michael (This used to be commit f0e47bce2e98131812e96fb88cc3d1fe939e8d6c)
* libsmbclient examples: fix prototype for readlinkMichael Adam2008-08-211-1/+1
| | | | | Michael (This used to be commit 28688cfd57c322937f2c63087380c377bd961018)
* Fix bug #5692 - Core dump in full_audit.so.Jeremy Allison2008-08-141-1/+1
| | | | | | There were some function mismatches in the various GET_NT_ACL modules (some places the fsp parameter has not been removed). Jeremy. (This used to be commit 221cc5e21eb27cdad51f34ec6832467a7bd89213)
* Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.Jeremy Allison2008-08-122-0/+21
| | | | | | | | | | Here is a patch to allow many subsystems to be re-initialized. The only functional change I made was to remove the null context tracking, as the memory allocated here is designed to be left for the complete lifetime of the program. Freeing this early (when all smb contexts are destroyed) could crash other users of talloc. Jeremy. (This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
* Add krb5 support for the testbrowse example.Andreas Schneider2008-06-232-1/+15
| | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com> (This used to be commit 84b1ea39a4f27ebcf06a2bafed78396c7353df0e)
* man pages: Move 'smbsh' man page to the examples directory.Karolin Seeger2008-06-173-0/+475
| | | | | | | | | | smbsh.c is located in the examples directory. It does not make sense to install a man page without installing the tool itself. This fixes bug #4724. Karolin (This used to be commit 797ed744b15c94fa4831d9796b40bb0ab5df55b7)
* Fix location of smbldap-toolsVolker Lendecke2008-06-021-1/+1
| | | | | Thanks to Miguel Medalha <miguelmedalha@sapo.pt> for pointing this out (This used to be commit 359b8d53d839bbf503915004c52bce9f09e6d785)
* Working on bug #5475Derrell Lipman2008-05-301-14/+34
| | | | | | | - Add code to test whether smbc_stat() munges future smbc_getxattr() results. Derrell (This used to be commit 5f6b301f92e9e9d5ee1dab9ef8eca2cc77e12941)
* Update libsmbclient examples to match new librariesDerrell Lipman2008-05-302-2/+2
| | | | | | | - talloc and tdb have been moved to separate libraries. Link with those. Derrell (This used to be commit e4060ad864ec9d4e9092a832c3c664ee31b6125a)
* Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison2008-05-082-15/+0
| | | | | | | | | | | | | | | this can only be done via fset_nt_acl() using an open file/directory handle. I'd like to do the same with get_nt_acl() but am concerned about efficiency problems with "hide unreadable/hide unwritable" when doing a directory listing (this would mean opening every file in the dir on list). Moving closer to rationalizing the ACL model and maybe moving the POSIX calls into a posix_acl VFS module rather than having them as first class citizens of the VFS. Jeremy. (This used to be commit f487f742cb903a06fbf2be006ddc9ce9063339ed)
* Remove redundant parameter fd from SMB_VFS_CLOSE().Michael Adam2008-04-212-4/+4
| | | | | | | Now all those redundant fd's have vanished from the VFS API. Michael (This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
* Missed a few 'deprecated' markersDerrell Lipman2008-03-031-1/+1
| | | | (This used to be commit 76ba37ac46b4a77fe228ca90635fa19140541ccd)
* Continued revamping of libsmbclient.Derrell Lipman2008-03-032-3/+3
| | | | | | | | | | | | | | - 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 (This used to be commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
* Remove use of deprecated functionDerrell Lipman2008-03-025-8/+8
| | | | (This used to be commit 93580bce833453ba512ee436d6dfdbdcd2c53777)
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-13/+4
| | | | | | | | | - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell (This used to be commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-013-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 (This used to be commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)
* Add mount.cifs as a wrapper for mount.cifs.Karolin Seeger2008-02-281-0/+115
| | | | | Karolin (This used to be commit be5ee4999ee8708ec06c1563a62c565a890df622)
* add a test program for the new ftruncate functionalityDerrell Lipman2008-02-262-0/+87
| | | | (This used to be commit df995eddbddec80a0d9d4659bbb9c6ca8a45d02b)
* Dump msDS-SupportedEncryptionTypes in adssearch.Günther Deschner2008-01-281-1/+15
| | | | | Guenther (This used to be commit bc0b68709cbbdd71996a39e23fe8305e1f144f31)
* Add a program to test repeated calls to smbc_getxattr().Derrell Lipman2008-01-172-0/+67
| | | | (This used to be commit f5f46de404dba2e4a03d205a62cd5cf7ea4e075a)
* Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-testDerrell Lipman2008-01-172-11/+4
|\ | | | | | | (This used to be commit 15ef5e4884505bca7990e44200d0235764e9057f)
| * Remove is_remotestorage() call from VFS. We already have statvfs() there to ↵Alexander Bokovoy2008-01-172-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
| * Rework of VFS is_offline() function to only return boolean offline/online ↵Alexander Bokovoy2008-01-172-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Add some additional libsmbclient test programs.Derrell Lipman2008-01-173-1/+158
|/ | | | | | | | testwrite: create or truncate a file and write to it. teststat3: compare the results from smbc_stat() and smbc_fstat() Derrell (This used to be commit 5a4a7aec761c3388b741b9b47fa6358fc71a66ce)
* Fix the mess that ab just made of the new VFS code.Jeremy Allison2008-01-162-2/+54
| | | | | | NEEDS MORE TESTING ! Jeremy. (This used to be commit bcc94aed6f03211866aa85753a90fece87846ba9)
* Modify testread example to loop using same context.Derrell Lipman2008-01-161-42/+34
| | | | | | | | | | | | 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 (This used to be commit 9d75ea577b407ccab59196760d376831062a3ab5)
* Replace GetTimeOfDay() with gettimeofday() in example program.Derrell Lipman2008-01-161-3/+2
| | | | | | GetTimeOfDay() seems to no longer be exported. For the smbsh example, just use the native gettimeofday() for now. (This used to be commit 296a6783fbc03460e87ac4136a0a9e6d2743b2ff)
* Add a (very!) trivial cache to the example authentication callback.Derrell Lipman2008-01-161-1/+21
| | | | (This used to be commit 01f6a4cca7a91ae41ff393263418216324502f84)