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 08:52] – 213.229.132.19 | perfer:guifi:servidor_socks [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
===== Configuración en squid ===== | ===== Configuración en squid ===== | ||
+ | Fichero / | ||
auth_param basic children 5 | auth_param basic children 5 | ||
auth_param basic realm Porta Escorxador de Mataro Sensefils | auth_param basic realm Porta Escorxador de Mataro Sensefils | ||
Line 23: | Line 24: | ||
jose.legid hola | jose.legid hola | ||
ERR No such user | ERR No such user | ||
+ | |||
+ | ===== Configuración en Dante ===== | ||
+ | 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.1315299145.txt.gz · Last modified: 2015/04/13 20:19 (external edit)