You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how do you set the thumbnailPhoto attribute for a user ? is it even possible right now ?
I used to have some ldap-snippets to set the user picture, but it's not really satisfiying:
My current solution is deploying the picture and then use an exec with ldbmodify unless the "thumbnailPhoto" attribut is found with ldbsearch....
dn: CN=<%= @given_name %>,CN=Users,<% @realm.split('.').each do |rlm| %>,DC=<%= "#{rlm}" %><% end %>
changetype: modify
add: thumbnailPhoto
thumbnailPhoto:< file:///opt/samba4/pics/<%= @name %>.png
it would be nice if there is any way to use smb_user to add user pictures.
Or a hint how you do it ;-)
Regards
Peter
The text was updated successfully, but these errors were encountered:
This provider relies heavily on additional-samba-tool. additional-samba-tool is a small python script using the samba 4 python library and permitting to list/modify user's attributes.
The logic behind this provider is:
additional-samba-tool is called by the smb_user type provider to list user's attributes and display it as yaml in stdout.
the yaml stdout is recovered by the provider and parsed by the provider.
Then the provider check if the values are set correctly.
If not, the provider uses additional-samba-tool again to set/create the attribute with the correct value.
The issue is that there is no special handling of binary attributes such as thumbnailPhoto. For this to properly work, they should be printed as base64 in additional-samba-tool "list" mode, and additional-samba-tool should have a switch in "set" mode to handle data passed as base64.
Hi guys,
how do you set the thumbnailPhoto attribute for a user ? is it even possible right now ?
I used to have some ldap-snippets to set the user picture, but it's not really satisfiying:
My current solution is deploying the picture and then use an exec with ldbmodify unless the "thumbnailPhoto" attribut is found with ldbsearch....
it would be nice if there is any way to use smb_user to add user pictures.
Or a hint how you do it ;-)
Regards
Peter
The text was updated successfully, but these errors were encountered: