Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring-data-ldap @DnAttribute value is not work #490

Open
chc123456 opened this issue Aug 16, 2018 · 5 comments

Comments

2 participants
@chc123456
Copy link

commented Aug 16, 2018

Setting “value” has no effect, when I set the value like @DnAttribute(value = "ou", index = 3)
this is not index by "ou" attribute.It works the whole "dn"

@rwinch

This comment has been minimized.

Copy link
Member

commented Aug 16, 2018

@chc123456 Thank you for the report! Would you be able to submit an example or a PR with a test to fix it?

@chc123456

This comment has been minimized.

Copy link
Author

commented Aug 16, 2018

Use user-admin-sample data like

dn: cn=Some Dude,ou=Development,ou=IT,ou=Departments,dc=example,dc=com

Entity Like

    @DnAttribute(value = "ou", index = 3)
    @Transient
    private String unit;

    @DnAttribute(value = "ou", index = 2)
    @Transient
    private String department;

Change Index Number.

   @DnAttribute(value = "ou", index = 5)
    @Transient
    private String department;

getDepartment() value is “Some Dude”

@rwinch

This comment has been minimized.

Copy link
Member

commented Aug 17, 2018

Any chance you can provide a complete sample? If you are able to, this will greatly speed up the ability for me to respond since I have lots of other users asking for help.

@chc123456

This comment has been minimized.

Copy link
Author

commented Aug 22, 2018

@rwinch rwinch changed the title spirng-data-ldap @DnAttribute value is not work spring-data-ldap @DnAttribute value is not work Aug 22, 2018

@rwinch rwinch added this to rwinch in Security Team Aug 22, 2018

@rwinch

This comment has been minimized.

Copy link
Member

commented Aug 22, 2018

Thanks for the sample @chc123456 I have added this to my queue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.