Skip to content

Commit 845ef3d

Browse files
committed
Adjust password constraints to fix user creation
1 parent bc9953b commit 845ef3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/vendors/fujitsu/fujitsu.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ func (c *bmcConnection) Present() bool {
134134
}
135135

136136
func (c *bmcConnection) CreateUserAndPassword(user api.BMCUser, privilege api.IpmiPrivilege) (string, error) {
137-
return c.IpmiTool.CreateUser(user, privilege, "", c.Board().Vendor.PasswordConstraints(), ipmi.HighLevel)
137+
password_constraints := c.Board().Vendor.PasswordConstraints()
138+
password_constraints.Length = 12
139+
return c.IpmiTool.CreateUser(user, privilege, "", password_constraints, ipmi.HighLevel)
138140
}
139141

140142
func (c *bmcConnection) CreateUser(user api.BMCUser, privilege api.IpmiPrivilege, password string) error {

0 commit comments

Comments
 (0)