perfer:guifi:servidor_socks
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| perfer:guifi:servidor_socks [2011/09/23 14:32] – 213.229.132.19 | perfer:guifi:servidor_socks [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| / | / | ||
| ====== Módulo PAM ====== | ====== Módulo PAM ====== | ||
| + | |||
| + | apt-get install libpam-ldapd libpam0g-dev | ||
| + | |||
| http:// | http:// | ||
| http:// | http:// | ||
| + | |||
| + | |||
| + | ===== Crear Módulo ===== | ||
| + | Crear fichero | ||
| + | |||
| + | < | ||
| + | #ifndef _PAM_USERPASS_H | ||
| + | #define _PAM_USERPASS_H | ||
| + | |||
| + | #include < | ||
| + | typedef struct { | ||
| + | const char *user; | ||
| + | const char *pass; | ||
| + | } pam_userpass_t; | ||
| + | |||
| + | extern int pam_userpass_conv(int num_msg, const struct pam_message **msg, | ||
| + | struct pam_response **resp, void *appdata_ptr); | ||
| + | |||
| + | #endif | ||
| + | </ | ||
| + | |||
| + | |||
| + | **pam_userpass_t** es la estructura de como guardamos los usuarios y las contraseñas | ||
| + | |||
perfer/guifi/servidor_socks.1316788363.txt.gz · Last modified: (external edit)
