Giter VIP home page Giter VIP logo

Comments (7)

ProjectPatatoe avatar ProjectPatatoe commented on July 20, 2024

I'm having trouble as well. I'm not sure what the plugin wants the format of the LDAP attribute to be in. Is it a URL to the image or is it a base 64 or is either ok?

from jellyfin-plugin-ldapauth.

marissa999 avatar marissa999 commented on July 20, 2024

I tried to figure out what exactly the plugin wants. It seems that base64 is standard, and that makes the most sense to me too. But I am not confident right now that the plugin expects base64

Looking at the source code I was able to find the following:

var ldapProfileImage = ldapAuthProvider.GetAttribute(ldapUser, ProfileImageAttr)?.ByteValue;

Here it seems like a ByteValue is returned.

public LdapAttribute GetAttribute(LdapEntry userEntry, string attr)

And GetAttribute seems to be returning a LdapAttribute object.

The whole plugin seems to make use of Novell.Directory.Ldap

https://github.com/dsbenghe/Novell.Directory.Ldap.NETStandard/blob/5ff61fafa2d7b7fd0a9f4458e462bcb4f9970da9/src/Novell.Directory.Ldap.NETStandard/LdapAttribute.cs#L305
So looking at this it seems like ByteValue is an array of bytes.

But I can not figure out what exactly sets _value and how that is determined... That is where I stopped looking.

from jellyfin-plugin-ldapauth.

itzteajay-glitch avatar itzteajay-glitch commented on July 20, 2024

I'm definitely trying to understand this more. Currently working on getting this to sync through authentik who also treats avatars strangely just trying to get an understanding of how this works so I can implement it.

from jellyfin-plugin-ldapauth.

ProjectPatatoe avatar ProjectPatatoe commented on July 20, 2024

I'm trying to do the same thing, I asked the question in authentik but no response yet. goauthentik/authentik#10055

from jellyfin-plugin-ldapauth.

itzteajay-glitch avatar itzteajay-glitch commented on July 20, 2024

So in authentik I found this. It at least gives another option by allowing us to pass the URL to the image. I still haven't manged to get it to work in jellyfin though but now I have the image url. goauthentik/authentik#6824

from jellyfin-plugin-ldapauth.

itzteajay-glitch avatar itzteajay-glitch commented on July 20, 2024

So in plugins/configuration there is the LDAP-Auth.xml file that shows a place for the jpegPhoto details but no matter what I put in my "avatars" field I can't get that file to populate and update with a hash. Has anyone had luck getting the plugin to make changes here?

from jellyfin-plugin-ldapauth.

itzteajay-glitch avatar itzteajay-glitch commented on July 20, 2024

Ok did some more digging and testing using https://base64.guru/converter/decode/text to see what I can come up with... So since the plugin doesn't (from what I can tell) decode the base64 into the binary before posting it in the profile.jpg file I think the only fix is to actually get the binary for the avatar into the ldap field which I can imagine will throw in some breaking characters. Gonna continue testing.

from jellyfin-plugin-ldapauth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.