summaryrefslogtreecommitdiffstats
path: root/src/sss_client/autofs
Commit message (Collapse)AuthorAgeFilesLines
* sss_autofs: Do not try to free empty autofs contextLukas Slebodnik2014-05-271-2/+4
| | | | | | | | | | | If initialisation fails in function _sss_setautomntent, context will not be initialized and automount client will crash. The function _sss_endautomntent should not try to dereference NULL pointer. Resolves: https://fedorahosted.org/sssd/ticket/2288 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
* sss_autofs: Check return value of autofs make requestLukas Slebodnik2014-05-271-12/+12
| | | | | | | | | | | | The return value of function sss_autofs_make_request was not checked. (returned value was SSS_STATUS_UNAVAIL) Unfotunatelly, errnop was zero; buffer "repbuf" was not initialised and automount crashed in sss_autofs plugin. Resolves: https://fedorahosted.org/sssd/ticket/2288 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
* sss_client: Use SAFEALIGN_COPY_<type> macros where appropriate.Michal Zidek2013-12-031-1/+5
| | | | | resolves: https://fedorahosted.org/sssd/ticket/1359
* Revert "Add debug message to autofs client"Jakub Hrozek2013-03-011-3/+0
| | | | This reverts commit 30c76633788c498b7d34e7e5944a3d36f26ec2db.
* Add debug message to autofs clientPavel Březina2013-03-011-0/+3
|
* autofs: Use SAFEALIGN_SET_UINT32 instead of SAFEALIGN_COPY_UINT32Jakub Hrozek2013-01-161-10/+5
|
* AUTOFS: remove unused assignmentsJakub Hrozek2012-05-031-1/+0
| | | | | Also changes setautomntent_send so that is only return NULL in case the tevent_req creation fails.
* autofs: Raise the maximum key length to PATH_MAXJakub Hrozek2012-04-181-2/+4
| | | | https://fedorahosted.org/sssd/ticket/1300
* Silence Coverity warning in the autofs test toolJakub Hrozek2012-03-281-8/+22
| | | | https://fedorahosted.org/sssd/ticket/1237
* AUTOFS: fix copy-and-paste bug in the autofs clientJakub Hrozek2012-03-261-1/+1
|
* Only free returned values on successJakub Hrozek2012-03-081-3/+3
| | | | https://fedorahosted.org/sssd/ticket/1237
* Autofs: operate on contents of double-pointer, not addressJakub Hrozek2012-03-081-3/+3
| | | | https://fedorahosted.org/sssd/ticket/1234
* AUTOFS: speed up the client by requesting multiple entries at onceJakub Hrozek2012-02-271-44/+160
| | | | https://fedorahosted.org/sssd/ticket/1166
* AUTOFS: a command-line test clientJakub Hrozek2012-02-051-0/+116
| | | | | | | | A very simply binary that can be used to test getting data from the library via SSSD in pretty much the same way SSSD would. A required positional parameter specifies the map name and the tool would print out all the key/value pairs using _sss_getautomntent_r(). You can also specify -n to query a specific key using _sss_getautomntbyname_r().
* AUTOFS: a client libraryJakub Hrozek2012-02-053-0/+419
This is the library the autofs client is using. automounter dlopen()s the library so there is no header file, no pkgconfig file and the library is in the libsss_autofs package, not in -devel. The library provides the following interface: * _sss_setautomntent() - select the map for processing * _sss_getautomntent_r() - iterates through key/value pairs in the selected map. The key is usually the mount point, the value is mount information (server:/export) * _sss_getautomntbyname_r() - returns value for a specific key. * _sss_endautomntent() deselect a map, clean up