[Koha-bugs] [Bug 7099] New: ActiveDirectory authentication thru LDAP doesn't work when principal_name is used with update or replicate

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 27 09:37:51 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7099

             Bug #: 7099
           Summary: ActiveDirectory authentication thru LDAP doesn't work
                    when principal_name is used with update or replicate
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P5
         Component: Authentication
        AssignedTo: gmcharlt at gmail.com
        ReportedBy: wallen_tan at southville.edu.ph
         QAContact: koha-bugs at lists.koha-community.org
                CC: dpavlin at rot13.org


Using Koha 4.02, Ubuntu 10.10
Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 1 cores (VMware)
Apache version 2.2.16


When authenticating to ActiveDirectory with an account that does not yet exist
on Koha - there is an error returned.

However when the account is already created - authentication works properly

Error:

Can't call method "exists" on an undefined value at
/usr/share/koha/lib/C4/Auth_with_ldap.pm line 168, <DATA> line 522.


koha-conf.xml


  <useldapserver>1</useldapserver>
  <!-- LDAP SERVER (optional) -->
  <ldapserver id="ldapserver">
    <hostname>sisc-blank.sville.edu.ph</hostname>
    <base>-BLANK-</base>
    <user>-BLANK-</user>             <!-- DN, if not anonymous -->
    <pass>-BLANK-</pass>          <!-- password, if not anonymous -->
    <replicate>1</replicate>       <!-- add new users from LDAP to Koha
database -->
    <update>1</update>             <!-- update existing users in Koha database
-->
    <auth_by_bind>1</auth_by_bind> <!-- set to 1 to authenticate by binding
instead of
                                        password comparison, e.g., to use
Active Directory -->
    <principal_name>%s at sville.edu.ph</principal_name>
                                   <!-- optional, for auth_by_bind: a printf
format to make userPrincipalName from koha userid -->
    <mapping>                  <!-- match koha SQL field names to your LDAP
record field names -->
      <firstname    is="givenname"      ></firstname>
      <surname      is="sn"             ></surname>
      <address      is="postaladdress"  ></address>
      <city         is="l"              >Las Pinas</city>
      <zipcode      is="postalcode"     ></zipcode>
      <branchcode   is="branch"         >SISC-01</branchcode>
      <userid       is="sAMAccountName"            ></userid>
      <password     is="userpassword"   ></password>
      <email        is="mail"           ></email>
      <categorycode is="employeetype"   >PT</categorycode>
      <phone        is="telephonenumber"></phone>
    </mapping>
</ldapserver>

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list