josso ldap数据存储创建

 

为了使用目录作为存储用户和角色信息, LDAP服务器可从JOSSO网关(an LDAP server accessible from the JOSSO Gateway)。在TCP / IP端口参与的LDAP会议是389636SSL

JOSSO已经测试OpenLDAPActiveDirectory,但应与几乎任何标准LDAP服务器。

 

这种使用方法将解释如何把JOSSO单点登录与LDAP服务器的存储的用户和作用的信息。它将执行的LDAP存储,配置提供身份验证信息,如用户密码,使用LDAP协议。

如果你已经安装了自己的schema,这一步并不是必需的。你应该替换。

You should create a namespace which should contain user and role entries. Lets have a look at an example.(你应该创建一个命名空间应包含用户和作用的项目。可以看看一个例子)

LDIF file:

# OU DEFINITIONS

# People OU - for holding records of all individuals

dn: ou=People,dc=my-domain,dc=com

ou: People

objectClass: top

objectClass: organizationalUnit

 

# Roles OU - for holding records of roles and the users to which those roles

# have been assigned

dn: ou=Roles,dc=my-domain,dc=com

ou: Roles

objectClass: top

objectClass: organizationalUnit

 

# PEOPLE ENTRIES

dn: uid=user1,ou=People,dc=my-domain,dc=com

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

sn: User1 SN

cn: User1 CN

uid: user1

userpassword: user1pwd

mail: [email protected]

 

dn: uid=user2,ou=People,dc=my-domain,dc=com

objectClass: top

objectClass: person

objectClass: organizationalPerson

objectClass: inetOrgPerson

sn: User2 SN

cn: User2 CN

uid: user2

userpassword: user2pwd

mail: [email protected]

 

# ROLES ENTRIES

dn: cn=role1,ou=Roles,dc=my-domain,dc=com

objectClass: top

objectClass: groupOfUniqueNames

cn: role1

uniqueMember: uid=user1,ou=People,dc=my-domain,dc=com

 

dn: cn=role2,ou=Roles,dc=my-domain,dc=com

objectClass: top

objectClass: groupOfUniqueNames

cn: role2

uniqueMember: uid=user2,ou=People,dc=my-domain,dc=com

The LDIF file should be imported into the LDAP server using the specific command available for this task in the LDAP server product. In case of using OpenLDAP you should use the ldapadd command.

On succesfull creation of the schema, the Directory should look like the following :
josso ldap数据存储创建_第1张图片

你可能感兴趣的:(server,schema,user,服务器,command,存储)