C#-API in Docker #186
              
                Unanswered
              
          
                  
                    
                      dongsiDaengsi
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hello dear community.
I have a problem using the LdapForNet package.
I would like to run a C# API (.NET 8) in a Docker container (Linux). The API should access an ActiveDirectory instance.
My Dockerfile looks like this:
I have also tried to use the following Dockerfile, also without success:
I read in the documentation that I have to include libldap.so.2 and liblber.so.2. Unfortunately, I have not found a way to make this work.
Would it be possible for one of you to help me with this? And perhaps give me a step-by-step guide?
I have already tried various ways, but I always get the following error message:
"Unable to load shared library 'ldap.so.2' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: \n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/ldap.so.2: cannot open shared object file: No such file or directory\n/app/ldap.so.2: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/libldap.so.2: cannot open shared object file: No such file or directory\n/app/libldap.so.2: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/ldap.so.2.so: cannot open shared object file: No such file or directory\n/app/ldap.so.2.so: cannot open shared object file: No such file or directory\n/usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.7/libldap.so.2.so: cannot open shared object file: No such file or directory\n/app/libldap.so.2.so: cannot open shared object file: No such file or directory\n"
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions