I am looking on a system and the user id and part of the dn is really the email address. some of gmail accounts use + in the email address. so how can I do a ldapadd for them.
If the '+' sign is part of the DN and not an indicator of a multi-valued DN, then the '+' sign must be escaped. An example of a multi-valued DN:
dn: cn=abc+uid=def,ou=people,dc=example,dc=com
The above DN is multi-valued, that is, both the cn attribute and the uid attribute comprise the RDN. If the intent is to have a '+' be part of the data, then that '+' must be escaped according to the rules established in RFC 4514.
发布评论
评论(1)
如果“+”号是 DN 的一部分而不是多值 DN 的指示符,则必须对“+”号进行转义。多值 DN 示例:
dn: cn=abc+uid=def,ou=people,dc=example,dc=com
上述 DN 是多值,即
cn
属性和uid
属性都构成RDN。如果目的是让“+”成为数据的一部分,则必须根据 RFC 4514。If the '+' sign is part of the DN and not an indicator of a multi-valued DN, then the '+' sign must be escaped. An example of a multi-valued DN:
dn: cn=abc+uid=def,ou=people,dc=example,dc=com
The above DN is multi-valued, that is, both the
cn
attribute and theuid
attribute comprise the RDN. If the intent is to have a '+' be part of the data, then that '+' must be escaped according to the rules established in RFC 4514.