Home
last modified time | relevance | path

Searched refs:username (Results 1 – 18 of 18) sorted by relevance

/lighttpd1.4/src/
H A Dmod_authn_file.c186 { ai->username, ai->ulen } in mod_authn_file_digest()
252 ai->username = memcpy(ai->userbuf, f_user, u_len); in mod_authn_file_htdigest_get_loop()
260 && 0 == memcmp(ai->username, f_user, u_len) in mod_authn_file_htdigest_get_loop()
311 ai.username = username->ptr; in mod_authn_file_htdigest_basic()
312 ai.ulen = buffer_clen(username); in mod_authn_file_htdigest_basic()
328 && http_auth_match_rules(require, username->ptr, NULL, NULL)); in mod_authn_file_htdigest_basic()
339 if (NULL == username) return -1; in mod_authn_file_htpasswd_get()
379 if (userlen == u_len && 0 == memcmp(username, f_user, u_len)) { in mod_authn_file_htpasswd_get()
402 ai->username, ai->ulen, tb, in mod_authn_file_plain_digest()
419 BUF_PTR_LEN(username), tb, in mod_authn_file_plain_basic()
[all …]
H A Dmod_authn_pam.c40 …uest_st *r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
142 static handler_t mod_authn_pam_query(request_st * const r, void *p_d, const buffer * const username… in mod_authn_pam_query() argument
154 rc = pam_start(p->conf.service, username->ptr, &conv, &pamh); in mod_authn_pam_query()
165 …d *p_d, const http_auth_require_t * const require, const buffer * const username, const char * con… in mod_authn_pam_basic() argument
167 handler_t rc = mod_authn_pam_query(r, p_d, username, realm, pw); in mod_authn_pam_basic()
169 return http_auth_match_rules(require, username->ptr, NULL, NULL) in mod_authn_pam_basic()
H A Dmod_auth.c54 char *username; member
69 + (k == username ? 0 : klen)); in http_auth_cache_entry_init()
76 ae->username = (char *)(ae + 1); in http_auth_cache_entry_init()
77 ae->pwdigest = ae->username + ulen; in http_auth_cache_entry_init()
78 ae->k = (k == username) in http_auth_cache_entry_init()
79 ? ae->username in http_auth_cache_entry_init()
81 memcpy(ae->username, username, ulen); in http_auth_cache_entry_init()
125 h = djbhash(username, ulen, h); in http_auth_cache_hash()
1131 const char *user = ai->username; in mod_auth_digest_get()
1155 ai->username = memcpy(ai->userbuf, ae->username, ae->ulen); in mod_auth_digest_get()
[all …]
H A Dmod_authn_dbi.c202 …uest_st *r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
398 { ai->username, ai->ulen } in mod_authn_dbi_password_cmp()
446 memcpy(buf, ai->username, ai->ulen); in mod_authn_dbi_query_build()
545 ai->username = ai->userbuf; in mod_authn_dbi_query()
563 …d *p_d, const http_auth_require_t * const require, const buffer * const username, const char * con… in mod_authn_dbi_basic() argument
569 ai.username = username->ptr; in mod_authn_dbi_basic()
570 ai.ulen = buffer_clen(username); in mod_authn_dbi_basic()
576 return http_auth_match_rules(require, username->ptr, NULL, NULL) in mod_authn_dbi_basic()
H A Dmod_auth_api.h63 const char *username; member
75 …uest_st *r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
101 void http_auth_setenv(request_st *r, const char *username, size_t ulen, const char *auth_type, size…
H A Dmod_authn_sasl.c46 …uest_st *r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
257 …_authn_sasl_query(request_st * const r, void *p_d, const buffer * const username, const char * con… in mod_authn_sasl_query() argument
279 rc = sasl_checkpass(sc, BUF_PTR_LEN(username), pw, strlen(pw)); in mod_authn_sasl_query()
286 …d *p_d, const http_auth_require_t * const require, const buffer * const username, const char * con… in mod_authn_sasl_basic() argument
288 handler_t rc = mod_authn_sasl_query(r, p_d, username, realm, pw); in mod_authn_sasl_basic()
290 return http_auth_match_rules(require, username->ptr, NULL, NULL) in mod_authn_sasl_basic()
H A Dmod_authn_gssapi.c52 …uest_st *r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
624 …d *p_d, const http_auth_require_t * const require, const buffer * const username, const char * con… in mod_authn_gssapi_basic() argument
687 if (strchr(username->ptr, '@') == NULL) { in mod_authn_gssapi_basic()
688 buffer_copy_buffer((user_at_realm = buffer_init()), username); in mod_authn_gssapi_basic()
693 ret = krb5_parse_name(kcontext, (user_at_realm ? user_at_realm->ptr : username->ptr), &c_princ); in mod_authn_gssapi_basic()
695 …E__, __LINE__, "krb5_parse_name", (user_at_realm ? user_at_realm->ptr : username->ptr), kcontext, … in mod_authn_gssapi_basic()
758 …->conf.errh, __FILE__, __LINE__, "mod_authn_gssapi_store_krb5_creds failed for %s", username->ptr); in mod_authn_gssapi_basic()
773 if (0 == ret && http_auth_match_rules(require,username->ptr,NULL,NULL)){ in mod_authn_gssapi_basic()
780 r->uri.path.ptr, username->ptr, r->dst_addr_buf->ptr); in mod_authn_gssapi_basic()
H A Dmod_authn_ldap.c54 … * const r, void *p_d, const http_auth_require_t *require, const buffer *username, const char *pw);
677 …rh, plugin_config *s, const http_auth_require_t *require, const buffer *username, const char *user… in mod_authn_ldap_memberOf() argument
690 mod_authn_append_ldap_filter_escape(filter, username); in mod_authn_ldap_memberOf()
712 …d *p_d, const http_auth_require_t * const require, const buffer * const username, const char * con… in mod_authn_ldap_basic() argument
734 mod_authn_append_ldap_dn_escape(ldap_filter, username); in mod_authn_ldap_basic()
742 mod_authn_append_ldap_filter_escape(ldap_filter, username); in mod_authn_ldap_basic()
801 if (http_auth_match_rules(require, username->ptr, NULL, NULL)) { in mod_authn_ldap_basic()
806 rc = mod_authn_ldap_memberOf(errh,&p->conf,require,username,dn); in mod_authn_ldap_basic()
H A Dmod_auth_api.c115 void http_auth_setenv(request_st * const r, const char *username, size_t ulen, const char *auth_typ… in http_auth_setenv() argument
116 http_header_env_set(r, CONST_STR_LEN("REMOTE_USER"), username, ulen); in http_auth_setenv()
H A Dbase.h112 const buffer *username; member
H A Dserver.c1572 if (srv->srvconf.username) { in server_main_setup()
1573 if (NULL == (pwd = getpwnam(srv->srvconf.username->ptr))) { in server_main_setup()
1575 "can't find username %s", srv->srvconf.username->ptr); in server_main_setup()
1613 if (srv->srvconf.username) { in server_main_setup()
1614 initgroups(srv->srvconf.username->ptr, grp->gr_gid); in server_main_setup()
H A Dconfigfile.c846 srv->srvconf.username = cpv->v.b; in config_insert_srvconf()
/lighttpd1.4/doc/outdated/
H A Dauthentication.txt38 The Basic method transfers the username and the password in
72 A file which contains username and the cleartext password
83 A file which contains username and the crypt()'ed password
99 A file which contains username, realm and the md5()'ed
136 2. get DN for filter = username
164 # 'username' from the login dialog
179 # "require" => "user=<username>" )
H A Dsecurity.txt47 server.username = "..."
H A Dfeatures.txt65 Access control only allows authentication via username and password. There
H A Dconfiguration.txt317 server.username
318 username used to run the server
/lighttpd1.4/doc/config/
H A Dlighttpd.conf100 server.username = "lighttpd"
/lighttpd1.4/
H A DNEWS171 * [core] clarify server.username = "root" error msg
518 * [mod_auth] RFC7616 HTTP Digest username* userhash
2136 * [mod_userdir] security: skip username "." and ".."
2328 * [mod_auth] LDAP escape username in DN and filters
2740 * [security] ensure gid != 0 if server.username set (fixes #2725)