[
https://issues.apache.org/jira/browse/DIRSERVER-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15471483#comment-15471483
]
Stefan Seelmann commented on DIRSERVER-2079:
--------------------------------------------
.bq running ldapsearch also doesn't print pwdPolicySubentry.
The pwdPolicySubentry is a operational attribute. Such operational attributes
are by default not returned by an LDAP search. You have to request them
explicitely, either each separate by name or by using "+" to get all. But if
you requiest any or all operational attributes you won't get the normal user
attributes. So you need to specify both, e.g. with "+ *"
Example:
ldapsearch -p 10389 -D "cn=sampleuser,ou=SampleOrg,dc=example,dc=com" -w secret
-h 127.0.0.1 -b "dc=example,dc=com" -s sub "cn=sampleuser" "*" "+"
In Studio you can fetch operational attributes either per entry (right-click
and select "Fetch operational attributes") or per connection (connection
properties -> browser options -> Fetch operational attribuges while browsing)
> Unable to Add passwordpolicysubentry attribute to user
> ------------------------------------------------------
>
> Key: DIRSERVER-2079
> URL: https://issues.apache.org/jira/browse/DIRSERVER-2079
> Project: Directory ApacheDS
> Issue Type: Bug
> Components: ldap
> Affects Versions: 2.0.0-M19, 2.0.0-M20
> Environment: Mac os
> Reporter: Kevin Bheda
>
> *Steps to reproduce*
> # Create Custom password policy with ads-pwdid=custom
> # Try to custom password policy dn as the pwdpolicysubentry to the user.
> *Expected*
> pwdpolicysubentry should be added successfully.
> *Actual*
> pwdpolicysubentry cannot be added giving error
> *Command Line log trace*
> # Reference command line loghttp://pastebin.com/GAkEkJ15
> # Also tried to dn
> "ads-pwdId=custom2,ou=passwordPolicies,ads-interceptorId=authenticationInterceptor,ou=interceptors,ads-directoryServiceId=default,ou=config"
> *Adding Attribute via Apache Directory Studio gives error*
> # Screenshot of Apache directory url : http://imgur.com/a/jbiVT
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)