Use initial name instead of ID
This commit is contained in:
parent
467641f4f2
commit
61f96a643c
2 changed files with 8 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ func nginxGenTeam() (string, error) {
|
|||
} else {
|
||||
ret := ""
|
||||
for _, team := range teams {
|
||||
ret += fmt.Sprintf(" if ($ssl_client_s_dn ~ \"/C=FR/ST=France/O=Epita/OU=SRS/CN=%s\") { set $team %d; }\n", team.InitialName, team.Id)
|
||||
ret += fmt.Sprintf(" if ($ssl_client_s_dn ~ \"/C=FR/ST=France/O=Epita/OU=SRS/CN=%s\") { set $team \"%s\"; }\n", team.InitialName, team.InitialName)
|
||||
}
|
||||
|
||||
return ret, nil
|
||||
|
|
|
|||
Reference in a new issue