auth fail ampache with AD windows 2008

Asked by Mokhless Hachicha

this is my log :

2017-02-09 09:30:29 [ampache] (session) -> Unable to read session from key 9m8fqe0j168igoh66p7tpjp835 no data found
2017-02-09 09:30:29 [ampache] (ldap_auth) -> ldap_search: (&(objectclass=organizationalPerson)(sAMAccountName=hachicha))
2017-02-09 09:30:29 [ampache] (PHP) -> [Runtime Error] ldap_search(): Search: Operations error in file /var/www/html/ampache/lib/class/auth.class.php(334)
2017-02-09 09:30:29 [ampache] (PHP) -> [Runtime Error] ldap_get_entries() expects parameter 2 to be resource, boolean given in file /var/www/html/ampache/lib/class/auth.class.php(335)
2017-02-09 09:30:29 [ampache] (Login) -> hachicha From 127.0.0.1 attempted to login and failed

and this is configuration :

;#########################################################
; LDAP login info (optional) #
;#########################################################

; LDAP server URL (required)
; DEFAULT: none
ldap_url = "ldap://vod.com/"
;ldap_url = "ldaps://192.168.0.1/"

; LDAP credentials (optional)
; DEFAULT: none
;ldap_username = ""
;ldap_password = ""

; LDAP Base DN for the search (required)
; DEFAULT: none
ldap_search_dn = "ou=ampache,dc=vod,dc=vod,dc=com"

; LDAP objectClass (required)
; DEFAULT: none
;ldap_objectclass = "posixAccount" ; OpenLDAP
ldap_objectclass = "organizationalPerson" ; Microsoft Active Directory

; LDAP filter for search (required)
; DEFAULT: none
;ldap_filter = "(uid=%v)" ; OpenLDAP
ldap_filter = "(sAMAccountName=%v)" ; Microsoft Active Directory

; Require that the user is in a specific group (optional)
; DEFAULT: none
;ldap_require_group = "cn=yourgroup,ou=yourorg,dc=yoursubdomain,dc=yourdomain,dc=yourtld"

; LDAP name field
; DEFAULT = "cn"
;ldap_name_field = "cn"
;ldap_name_field = "displayName"

; LDAP email field
; DEFAULT = "mail"
;ldap_email_field = "mail"

; LDAP avatar field
; DEFAULT: none
;ldap_avatar_field = "jpegPhoto"

; LDAP avatar mime type
; DEFAULT: image/jpeg
;ldap_avatar_mime = "image/jpeg"

; LDAP protocol version to use
; DEFAULT: 3
;ldap_protocol_version = 3

; LDAP StartTLS
; DEFAULT: false
ldap_start_tls = "false"

; LDAP member attribute name.
; That's the name of the attribute of the group that will contain
; the usernames.
; DEFAULT: member
;ldap_member_attribute = "ampache"
;ldap_member_attribute = "Users"

Please Help me

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu ampache Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.