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/06 09:02] – 213.229.132.19 | perfer:guifi:servidor_socks [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 28: | Line 28: | ||
Fichero de configuración: | Fichero de configuración: | ||
/ | / | ||
+ | ====== Módulo PAM ====== | ||
+ | |||
+ | apt-get install libpam-ldapd libpam0g-dev | ||
+ | |||
+ | 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.1315299774.txt.gz · Last modified: 2015/04/13 20:19 (external edit)