summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Revert "s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5."Karolin Seeger2009-08-171-6/+1
| | | | | | This reverts commit 6a91468853d9c37993d109b079eb042d1b33cba9. Forgot for a second that there won't be any 3.2 maintenance releases...
* s3-ldap: Fix Bug #5879. Update LDAP schema for Netscape DS 5.Günther Deschner2009-08-171-1/+6
| | | | | | | | Patch from TAKEDA Yasuma <yasuma@osstech.co.jp>. Guenther (cherry picked from commit 9fa042bb9f71057fc869e37d4cc180e8a772b1bb) (cherry picked from commit a01f0a4025d382c1bc82f4992ea4566db4df3818)
* 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 (cherry picked from commit 2b1fe2c98f4e0013dee4cbae62dc36cdd4085c7d)
* 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 (cherry picked from commit 2e09746a4db4186c9d648370b9004971bc18e5c9) (cherry picked from commit 9b17f7907bca32282d6e56fa28ca62ef84bf7afc)
* Revert "examples: Avoid bashism in perfcount.init."Karolin Seeger2009-01-051-1/+1
| | | | This reverts commit b4ffffc5c03b69ac2f8e0ed74fd7788549f7e822.
* 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 (cherry picked from commit 73875cd344608b591fa884ab99b5f3a10550c149) (cherry picked from commit e273c07e94ee607bbf05b6fa66cf3cea13fe4502) (cherry picked from commit a1bf1f1819ab184682327583d05b0258db8856ef)
* 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.
* 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.
* Remove test changes added in error.Jeremy Allison2008-07-241-6/+1
| | | | Jeremy.
* Use sys_getgrnam not getgrnam. Pointed out by Herb.Jeremy Allison2008-07-241-2/+7
| | | | Jeremy.
* Add krb5 support for the testbrowse example.Andreas Schneider2008-06-242-1/+15
| | | | | | | Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com> (cherry picked from commit 84b1ea39a4f27ebcf06a2bafed78396c7353df0e) (cherry picked from commit c7d963191e1858000752ff57eac1501777f0ebda)
* 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 (cherry picked from commit 797ed744b15c94fa4831d9796b40bb0ab5df55b7)
* Fix location of smbldap-toolsVolker Lendecke2008-06-021-1/+1
| | | | Thanks to Miguel Medalha <miguelmedalha@sapo.pt> for pointing this out
* 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
* Missed a few 'deprecated' markersDerrell Lipman2008-03-031-1/+1
|
* 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
* Remove use of deprecated functionDerrell Lipman2008-03-025-8/+8
|
* 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
* 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
* Add mount.cifs as a wrapper for mount.cifs.Karolin Seeger2008-02-281-0/+115
| | | | Karolin
* add a test program for the new ftruncate functionalityDerrell Lipman2008-02-262-0/+87
|
* Dump msDS-SupportedEncryptionTypes in adssearch.Günther Deschner2008-01-281-1/+15
| | | | Guenther
* Add a program to test repeated calls to smbc_getxattr().Derrell Lipman2008-01-172-0/+67
|
* Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-testDerrell Lipman2008-01-172-11/+4
|\
| * 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.
| * 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.
* | 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
* Fix the mess that ab just made of the new VFS code.Jeremy Allison2008-01-162-2/+54
| | | | | NEEDS MORE TESTING ! Jeremy.
* 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
* 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.
* Add a (very!) trivial cache to the example authentication callback.Derrell Lipman2008-01-161-1/+21
|
* Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testDerrell Lipman2008-01-151-1/+1
|\
| * Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>Michael Adam2008-01-141-1/+1
| | | | | | | | Michael
* | Fix smbc_listxattr() and friends (bug #5189)Derrell Lipman2008-01-131-1/+26
| | | | | | | | | | | | | | | | | | | | 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
* | Fix compile and linking errors since last this code was testedDerrell Lipman2008-01-133-2/+3
|/
* Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam2008-01-112-4/+4
| | | | Michael
* Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2008-01-112-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam2008-01-102-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_READ().Michael Adam2008-01-102-4/+4
| | | | Michael
* Remove unused string.Günther Deschner2008-01-101-2/+2
| | | | Guenther
* Fix build warning for libsmbclient example.Günther Deschner2008-01-091-0/+2
| | | | Guenther
* Fix returns in void functions.Michael Adam2008-01-081-2/+2
| | | | Michael
* Fix examples/VFS after VFS API changes.Michael Adam2008-01-082-33/+33
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LOCK().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FTRUNCATE().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FCHOWN().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FCHMOD().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_FSYNC().Michael Adam2008-01-072-4/+4
| | | | Michael
* Remove redundant parameter fd from SMB_VFS_LSEEK().Michael Adam2008-01-072-4/+4
| | | | Michael