-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
I am currently working on ZK Spring Web Application using Java, where Application user attributes reside in LDAP Server. Everything like authentication, etc ... works fine, but now I am in need of managing the user profile where the user can her/himself upload a photo (.jpeg, .png, .gif) as profile picture.
I created a user with the same attributes as in LDAP where byte[] userImage is one of them which should correspond to jpegPhoto.
I have an upload button which tries to bind the uploaded image to user Image as byte[] and the upload works fine but when I try to update the profile using Modification(anyone worked with LDAP undertand what I am saying), I am stack there as I get this error: (inappropriate matching), errorMessage='modify/add: jpegPhoto: no equality matching rule', diagnosticMessage='modify/add: jpegPhoto: no equality matching rule').
Please anyone with a simple Java ZK Ldap example working can help me.
Thanks
The problem isn't in zk but in ldap, the problem is "no equality matching rule".
You must modify the schema in ldap and add equality on attribute jpegPhoto; example: "attributeType ( 1.3.6.1.4.1.10924.233.101.32 NAME 'jpegPhoto' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE EQUALITY caseIgnoreMatch)"
Asked: 2015-12-23 12:57:58 +0800
Seen: 27 times
Last updated: Jan 20 '16
Databinding and auto-complete on combobox
Composite component and bind in ZK 6
How to detach / reattach MVVM windows?
Is there a way to resolve view model properties as input to client side javascripts?
How can I synchronize data in a ListBox in MVVM ? [closed]
MVVM Validator: class not found ? [closed]
How to Call Child ViewModel Method from Parent Window? [closed]