summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-testDerrell Lipman2008-01-151-1/+1
|\ | | | | | | (This used to be commit 3a61e663e51fe620225691bc8673bf8800a36f47)
| * Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>Michael Adam2008-01-141-1/+1
| | | | | | | | | | Michael (This used to be commit dcb5034acd35d219106e1d855f4c4d36b3c8d83b)
* | 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 (This used to be commit 913c335d21c503d32b35bf65da7b2bddf0473875)
* | Fix compile and linking errors since last this code was testedDerrell Lipman2008-01-133-2/+3
|/ | | | (This used to be commit 2f432842442859f98ecd263464ce02821ab10fca)
* Combine fsp and tofd to tofsp in SMB_VFS_RECVFILE().Michael Adam2008-01-112-4/+4
| | | | | Michael (This used to be commit 3958abffaf2866c69ad9e13ec345364fde5c78bb)
* Combine fsp and fromfd to fromfsp in SMB_VFS_SENDFILE().Michael Adam2008-01-112-4/+4
| | | | | Michael (This used to be commit a52cfb7d777157c93c9dc26c67f457be592dd537)
* Remove redundant parameter fd from SMB_VFS_WRITE().Michael Adam2008-01-102-4/+4
| | | | | Michael (This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
* Remove redundant parameter fd from SMB_VFS_READ().Michael Adam2008-01-102-4/+4
| | | | | Michael (This used to be commit a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04)
* Remove unused string.Günther Deschner2008-01-101-2/+2
| | | | | Guenther (This used to be commit 88d6683872f4bb9c3074280f385f73c7af9de784)
* Fix build warning for libsmbclient example.Günther Deschner2008-01-091-0/+2
| | | | | Guenther (This used to be commit 8f411753b2130e9c1f260a15d031f57ba07b62a1)
* Fix returns in void functions.Michael Adam2008-01-081-2/+2
| | | | | Michael (This used to be commit ef7c9a765bcdb1c774ff4f6d14053c4aa3815f31)
* Fix examples/VFS after VFS API changes.Michael Adam2008-01-082-33/+33
| | | | | Michael (This used to be commit c88555ce45aa2998037d316f3a8edccd04be04a4)
* Remove redundant parameter fd from SMB_VFS_LOCK().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 4f3ab2c406072e0b43581057e7e785e8ad454cfa)
* Remove redundant parameter fd from SMB_VFS_FTRUNCATE().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 2ad66050a0452b8e7e08b1e7a01efa00c72fd451)
* Remove redundant parameter fd from SMB_VFS_FCHOWN().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit fbb193db3e0dc51cb000ae406a68bc547f31d9ab)
* Remove redundant parameter fd from SMB_VFS_FCHMOD().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit a54d5604da556d1250ca9948d4acc4a187a9fede)
* Remove redundant parameter fd from SMB_VFS_FSTAT().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 0b86c420be94d295f6917a220b5d699f65b46711)
* Remove redundant parameter fd from SMB_VFS_FSYNC().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 8f83c9a7b245dbfef28195f9a7f33047a8ba95a0)
* Remove redundant parameter fd from SMB_VFS_LSEEK().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit df929796f2698698d2875227bda8500589cca2df)
* Remove redundant parameter fd from SMB_VFS_PWRITE().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 8c4901a19ae2fd3ee085f9499f33aa7db016d182)
* Adapt fset_nt_acl() and fget_nt_acl() in examples/VFS/ to vfs prototype change.Michael Adam2008-01-072-7/+7
| | | | | Michael (This used to be commit d9d6775878f8b3425665c6a45a5ef9cb92932cf8)
* Remove unneeded parameter fd from SMB_VFS_PREAD().Michael Adam2008-01-072-4/+4
| | | | | Michael (This used to be commit 73e28806ce87d829ea7c38ed3440020845bb13bf)
* Fix typoKarolin Seeger2007-11-091-1/+1
| | | | (This used to be commit e811b9f3bbf614f76e628755dafd358769b8a58b)
* The FSF has moved around a lot. This fixes their Mass Ave address.Michael Adam2007-11-092-4/+2
| | | | | | | This adapts r23801 / 87c91e4362c51819032bfbebbb273c52e203b227 to files just added by cherry-pick. Michael (This used to be commit a0d595c2277d2f754cdb0c85119fdc130d86f7ea)
* Find and fix more GPL2 -> GPL3.Michael Adam2007-11-092-2/+2
| | | | | | | | Jeremy. This adapts r23780 / c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f for files added by cherry-pick. (This used to be commit 1b6cf93992fbe338dff83a9f904ec9dfc422e242)
* r23714: This script allows for adding lists of users (or other objects)Michael Adam2007-11-091-0/+167
| | | | | | | | | to lists of groups (or aliases). Useful for creating large test scenarios. Michael (cherry picked from commit b3e5082e105f6eaeed51e9a42d525d811e7155ee) (This used to be commit 78a2344fe7ed53e9927e189fa4d465652731deab)
* r23711: Refactor the actual creation of object into its own small function.Michael Adam2007-11-091-7/+10
| | | | | | Michael (cherry picked from commit 26349c0b173e8baf6fa43deb39cb2bfdb31bf18e) (This used to be commit 852570059c974bc6c06f893e4bf5e76674e4ec00)
* r23706: Add a script to create domainusers,-groups and -aliases.Michael Adam2007-11-091-0/+155
| | | | | | | | | | | | | | | | 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) (This used to be commit 79414f8bfa9cce1b4543b3cf5d6ea65651fc0769)