diff options
author | Dante Catalfamo | 2020-06-27 03:11:26 -0400 |
---|---|---|
committer | Dante Catalfamo | 2020-06-27 03:11:26 -0400 |
commit | edd9de07ffd297a8b6a5724e61d202a9a7c0c0b5 (patch) | |
tree | 374fb3f110a5b79a695025c056d6b144f2430669 /content/posts/how-bsd-authentication-works/index.org | |
parent | a4b6f07b0d0a58542c57d492165c15133b8cc1d6 (diff) | |
download | blog-edd9de07ffd297a8b6a5724e61d202a9a7c0c0b5.tar.gz blog-edd9de07ffd297a8b6a5724e61d202a9a7c0c0b5.tar.bz2 blog-edd9de07ffd297a8b6a5724e61d202a9a7c0c0b5.zip |
More work towards bsd auth post
Diffstat (limited to 'content/posts/how-bsd-authentication-works/index.org')
-rw-r--r-- | content/posts/how-bsd-authentication-works/index.org | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/content/posts/how-bsd-authentication-works/index.org b/content/posts/how-bsd-authentication-works/index.org index 20b825f..29a9d62 100644 --- a/content/posts/how-bsd-authentication-works/index.org +++ b/content/posts/how-bsd-authentication-works/index.org @@ -68,9 +68,23 @@ The return codes are defined inside of =login_cap.h= as =auth_userokay= is just a wrapper around =auth_usercheck=, which returns a finished auth session of type =auth_session_t=. It closes -the auth session and returns the value returned from =auth_close=. +the auth session using =auth_close= and returns the value returned +from closing. -=auth_usercheck= +=auth_usercheck= checks the user name against the passwd db. It also +checks the login class against the =login.conf= db, along with +confirming the login styles available. + +#+begin_quote +Validates the checks that the user exists, gets the user's login +class, verifies the auth type, and that the auth style can be used. + +It creates an auth session struct. + +If the password is provided it sets the service type to =response=, +and adds the adds the password to the auth data. Otherwise it +leaves it empty. +#+end_quote From there it calls a couple other functions, constructing and filling out an =auth_session_t= struct using the =auth_set*= |