diff options
Diffstat (limited to 'src/nshd/hackers_git/db_config.go')
-rw-r--r-- | src/nshd/hackers_git/db_config.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nshd/hackers_git/db_config.go b/src/nshd/hackers_git/db_config.go new file mode 100644 index 0000000..9ed978f --- /dev/null +++ b/src/nshd/hackers_git/db_config.go @@ -0,0 +1,21 @@ +package hackers_git + +import p "nslcd_proto" + +func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_Enumerator { + o.lock.RLock() + defer o.lock.RUnlock() + + var val *string = nil + + switch req { + case p.NSLCD_CONFIG_PAM_PASSWORD_PROHIBIT_MESSAGE: + val = &o.pam_password_prohibit_message + } + + if val != nil { + return p.New_Config_List([]p.Config{p.Config(*val)}) + } else { + return p.Config_Ø{} + } +} |