Authent Module NWAUTH

  1. Home
  2. Knowledge Base
  3. Installation
  4. Authent Module NWAUTH
  1. Home
  2. Knowledge Base
  3. Management
  4. Authent Module NWAUTH
  1. Home
  2. Knowledge Base
  3. Accounts
  4. Authent Module NWAUTH

Installing and Setup

(windows) g_authent_process “c:\surgemail\nwauth.exe -path c:\surgemail”

(linux) g_authent_process “./nwauth”


Optional Command Line Options:

-pathTells NWAuth where to create it’s logfile and where to find it’s config file.
-debugSets the logging level to debug.
-logturns on logging to nwauth.log.
-logpasstesting option, log full command as given (includes password!)
-readonlyUse on slaves that don’t need to update files.
-encrypt user/all
-generate nCreates accounters test0..testn passwords test.
-size xSets max size of nwauth.add.
-sleep x yTesting option, sleep for y seconds first and every xth response
drop_path <hash> <base>Testing option, give drop path using DPOP hashing, hash=0,1,2, base is common drop path
-badchar <string>Overrides default bad character list with the string
-badchar_localpart <string>Overrides default localpart (before the @) bad character list with the string
-allowatsDisables check for more than one ‘@’ symbol in username
-allowhighasciiDisables check for high and low ascii in username
-nocryptStore passwords as plain text (security risk)
-decryptDecrypt passwords as users login. (security risk)
-showpassShow password on lookups (security risk!)

Error recovery – recover lost users.

In the event of loosing some users from the database for any unknown reason (deleting a file manually etc) you can rebuild the user database like this using the journal entries it keeps.

# First copy nwauth.* files

mkdir backup

copy nwauth.* backup

# Then use this command to get a list of changes it will make:

nwauth -path . -test

# Then run it with -fix to actually add the missing users:

nwauth -path . -fix


Supported Commands

The commands below are the list of commands that this module supports.

CommandParameters
check<user> <pass>
lookup<user>
set<user> <pass>|(NULL) [label=”value”]
del<user>
search<string> [-from n] [-max m]
help
quit
exit

Was this article helpful?

Related Articles