SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000889SiT!LDAPpublic2009-08-19 14:052009-08-20 13:03
Reporterivan 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusacknowledgedResolutionopen 
PlatformWindowsOSWindows ServerOS Versionwin2003
Product Version3.50 
Target VersionFixed in Version 
Summary0000889: LDAP auto Sync to AD fails
DescriptionPHP Fatal error: Call to undefined method stdClass::edit() in C:\Inetpub\wwwroo
t\auto.php on line 837

This seems to happen when syncing a certain user, I've added some extra debugging to print out $userattributes

debug_log("user attributes: ".print_r($user_attributes,true));
just inside the // Directory supports disabling IF

...

and I get...

2009-08-19T13:56:15+01:00 auto.php ldapOpen
2009-08-19T13:56:15+01:00 auto.php LDAP URL: ldap://ws2008-s01.mjc-vmware-1.local:389 [^]
2009-08-19T13:56:15+01:00 auto.php Filter: (ObjectClass=user)
2009-08-19T13:56:15+01:00 auto.php Base: CN=Administrator,CN=Users,DC=mjc-vmware-1,DC=local
2009-08-19T13:56:15+01:00 auto.php One entry found
2009-08-19T13:56:15+01:00 auto.php Valid Credentials
2009-08-19T13:56:15+01:00 auto.php Filter: (ObjectClass=user)
2009-08-19T13:56:15+01:00 auto.php Base: CN=Freddy,CN=Users,DC=mjc-vmware-1,DC=local
2009-08-19T13:56:15+01:00 auto.php One entry found
2009-08-19T13:56:15+01:00 auto.php user attributes: Array
(
    [givenName] => Array
        (
            [count] => 1
            [0] => Freddy
        )

    [0] => givenName
    [displayName] => Array
        (
            [count] => 1
            [0] => Freddy
        )

    [1] => displayName
    [memberOf] => Array
        (
            [count] => 1
            [0] => CN=situsers,OU=SiT,DC=mjc-vmware-1,DC=local
        )

    [2] => memberOf
    [userAccountControl] => Array
        (
            [count] => 1
            [0] => 512
        )

    [3] => userAccountControl
    [sAMAccountName] => Array
        (
            [count] => 1
            [0] => Freddy
        )

    [4] => sAMAccountName
    [mail] => Array
        (
            [count] => 1
            [0] => Freddy@mjc-vmware-1.local
        )

    [5] => mail
    [count] => 6
)
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0001784)
paulh (administrator)
2009-08-19 20:02

Looks like its trying to update a user in the DB who isn't in the DB, does a user with the username Freddy exist? Though given the position in the code it would also appear the user is disabled (which contradicts the previous statement). Hopefully this will help pinpoint the problem
User avatar (0001785)
ivan (administrator)
2009-08-19 20:34

The user isn't disabled, I check that. I'd need to look again but I think you're right in saying the user didn't exist in SiT.

- Issue History
Date Modified Username Field Change
2009-08-19 14:05 ivan New Issue
2009-08-19 20:02 paulh Note Added: 0001784
2009-08-19 20:34 ivan Note Added: 0001785
2009-08-20 13:03 ivan Status new => acknowledged


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker