/*
SSSD
Utilities to for tha pam_data structure
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <security/pam_modules.h>
#include "providers/data_provider.h"
#include "util/sss_cli_cmd.h"
{
/* make sure to wipe any password from memory before freeing */
return 0;
}
{
goto failed;
}
goto failed;
}
goto failed;
}
return pd;
return NULL;
}
{
goto failed;
}
goto failed;
}
goto failed;
}
goto failed;
}
goto failed;
}
goto failed;
}
goto failed;
}
/* if structure pam_data was allocated on stack and zero initialized,
* than src->authtok and src->newauthtok are NULL, therefore
* instead of copying, new empty authtok will be created.
*/
if (ret) {
goto failed;
}
} else {
goto failed;
}
}
if (src->newauthtok) {
if (ret) {
goto failed;
}
} else {
goto failed;
}
}
return EOK;
return ret;
}
{
}
{
new->do_not_send_to_client = false;
return EOK;
}