summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/nslcd_h.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nslcd_proto/nslcd_h.go')
-rw-r--r--src/nslcd_proto/nslcd_h.go32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/nslcd_proto/nslcd_h.go b/src/nslcd_proto/nslcd_h.go
index 394e91c..5d5bb06 100644
--- a/src/nslcd_proto/nslcd_h.go
+++ b/src/nslcd_proto/nslcd_h.go
@@ -113,10 +113,10 @@ const NSLCD_ACTION_ETHER_ALL int32 = 0x00030008; type Request_Ether_All
/* Group and group membership related NSS requests. The result values
for a single entry are: */
type Group struct {
- Name string
- Password string
- ID int32
- Members []string
+ Name string
+ PwHash string
+ ID int32
+ Members []string
}
/* (note that the BYMEMER call returns an emtpy members list) */
const NSLCD_ACTION_GROUP_BYNAME int32 = 0x00040001; type Request_Group_ByName string
@@ -221,13 +221,13 @@ const NSLCD_ACTION_NETWORK_ALL int32 = 0x00070008; type Request_Network_Al
/* User account (/etc/passwd) NSS requests. Result values are: */
type Passwd struct {
- Name string
- Password string
- UID int32
- GID int32
- GECOS string
- HomeDir string
- Shell string
+ Name string
+ PwHash string
+ UID int32
+ GID int32
+ GECOS string
+ HomeDir string
+ Shell string
}
const NSLCD_ACTION_PASSWD_BYNAME int32 = 0x00080001; type Request_Passwd_ByName string
const NSLCD_ACTION_PASSWD_BYUID int32 = 0x00080002; type Request_Passwd_ByUID int32
@@ -272,7 +272,7 @@ type Shadow struct {
// It is my understanding that an empty value for an INT32
// field is expressed with a negative number. -- lukeshu
Name string
- Password string
+ PwHash string
LastChangeDate int32
MinDays int32
MaxDays int32
@@ -298,7 +298,7 @@ type PAM_Base struct {
/* PAM authentication check request. The extra request values are: */
type Request_PAM_Authentication struct {
- Base PAM_Base
+ PAM_Base
Password string
}
/* and the result value consists of: */
@@ -323,18 +323,19 @@ type PAM_Authorization struct {
information. The authorisation error message, if supplied, will be used
by the PAM module instead of a message that is generated by the PAM
module itself. */
-const NSLCD_ACTION_PAM_AUTHORIZATION int32 = 0x000d0002; type Request_PAM_Authorization void
+const NSLCD_ACTION_PAM_AUTHORIZATION int32 = 0x000d0002; type Request_PAM_Authorization PAM_Base
/* PAM session open request. The result value consists of: */
type PAM_SessionOpen struct {
SessionID string
}
/* This session id may be used to close this session with. */
-const NSLCD_ACTION_PAM_SESSIONOPEN int32 = 0x000d0003; type Request_PAM_SessionOpen void
+const NSLCD_ACTION_PAM_SESSIONOPEN int32 = 0x000d0003; type Request_PAM_SessionOpen PAM_Base
/* PAM session close request. This request has the following
extra request value: */
type Request_PAM_SessionClose struct {
+ PAM_Base
SessionID string
}
/* and this calls only returns an empty response value. */
@@ -344,6 +345,7 @@ const NSLCD_ACTION_PAM_SESSIONCLOSE int32 = 0x000d0004
/* PAM password modification request. This requests has the following extra
request values: */
type Request_PAM_PwMod struct {
+ PAM_Base
AsRoot int32 /* 0=oldpasswd is user passwd, 1=oldpasswd is root passwd */
OldPassword string
NewPassword string