Hi,

This is the method where exception occurs

  public static function ldap_add($link_identifier, $dn, $entry) {
>
>     // Devel debugging.
>
>     if (variable_get('simple_ldap_devel', FALSE)) {
>
>       dpm(__FUNCTION__);
>
>       dpm(array(
>
>         '$dn' => $dn,
>
>         '$entry' => $entry,
>
>       ));
>
>     }
>
>
>>     // Wrapped function call.
>
>     $return = @ldap_add($link_identifier, $dn, $entry);
>
>
>>     // Debugging.
>
>     if (variable_get('simple_ldap_debug', FALSE)) {
>
>       $message = __FUNCTION__ . '($link_identifier = @link_identifier, $dn
>> = @dn, $entry = @entry) returns @return';
>
>       $variables = array(
>
>         '@link_identifier' => print_r($link_identifier, TRUE),
>
>         '@dn' => print_r($dn, TRUE),
>
>         '@entry' => print_r($entry, TRUE),
>
>         '@return' => print_r($return, TRUE),
>
>       );
>
>       watchdog('simple_ldap', $message, $variables, WATCHDOG_DEBUG);
>
>     }
>
>
>>     // Error handling.
>
>     if ($return === FALSE) {
>
>       throw new SimpleLdapException($link_identifier);
>
>     }
>
>
>>     return $return;
>
>   }
>
>

Thanks and Regards.


On Tue, May 26, 2015 at 9:29 AM, Chanuka Dissanayake <[email protected]>
wrote:

> Hi Nirmani,
>
> It looks like when try to login, if that user doesn’t exist in the drupal
> database, exception occurs but at the same time that user will get added in
> to the drupal database. Therefore  at the second time you can log in
> without an issue. Can you share the code and meanwhile check whether
> these[1][2] solutions are working for you.
>
> [1]
> http://stackoverflow.com/questions/5728540/ldap-add-add-object-class-violation-error
> [2] https://www.drupal.org/node/1920682
> [3] https://www.drupal.org/node/2262207
>
> Regards,
> Chanuka.
>
> On Mon, May 25, 2015 at 8:09 PM, Nirmani Meegahathenna <[email protected]>
> wrote:
>
>> Hi,
>>
>> I'm trying to integrate Drupal with IS for SSO provisioning. Followed
>> this article.
>>
>> http://wso2.com/library/articles/2014/10/wso2-identity-server-single-sign-on-with-drupal/#installsimplesamlphp
>>
>> Using SimpleLdap module <https://www.drupal.org/project/simple_ldap> to
>> connect with OT LDAP.
>>
>> Getting the error "*SimpleLdapException*: Object class violation in
>> *SimpleLdap::ldap_add()* (line *316* of
>> */var/www/html/drupal/sites/all/modules/simple_ldap/SimpleLdap.class.php*
>> )."  when user try to login for the first time.
>>
>> What is the reason for this?
>>
>> Thanks.
>>
>> --
>> Nirmani Meegahathenna
>> *Software Engineer Intern*
>> Mobile : +94 (0) 775 507684
>> [email protected] <[email protected]>
>>
>
>
>
> --
> Chanuka Dissanayake
> *Software Engineer | **WSO2 Inc.*; http://wso2.com
>
> Mobile: +94 71 33 63 596
> Email: [email protected]
>



-- 
Nirmani Meegahathenna
*Software Engineer Intern*
Mobile : +94 (0) 775 507684
[email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to