我想向用户添加新属性。现在,该条目如下所示:
dn: uid=testuser01,ou=People,dc=maxcrc,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: testuser01
sn: User01
givenName: Test01
cn: testuser01
displayName: Test User 01
uidNumber: 10001
gidNumber: 10001
userPassword: 12345qw
我想添加一个称为角色的新属性。每个用户可以具有多个角色。这是我的期望:
dn: uid=testuser01,ou=People,dc=maxcrc,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: testuser01
sn: User01
givenName: Test01
cn: testuser01
displayName: Test User 01
uidNumber: 10001
gidNumber: 10001
userPassword: 12345qw
persona: RootAdmin
persona: StaffAdmin
我想我必须修改模式文件吗?我应该修改哪些文件?谢谢!