6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
1/13/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#7877] removing user data
*
Your Email Address
*
Spam protection
Enter the letters below:
. ..__ __..__.. , | |[__)(__ | | \./ |/\|| \.__)|__\ |
Comment
>> removeUserData isn't supported by the LDAP driver. > > > > Hello Chuck > > > > I understand that for ldap, but not for the sql side > > > > In my sources.php > > > > $cfgSources['localsql'] = array( > > 'title' => _("My Address Book"), > > 'type' => 'sql', > > .. > > 'export' => true, > > 'browse' => true, > > 'use_shares' => true, > > 'list_name_field' => 'lastname', > > ); > > > > $cfgSources['localldap'] = array( > > 'title' => 'Annuaire U2', > > 'type' => 'ldap', > > .. > > 'strict' => array('dn','mail'), > > 'browse' => true, > > 'export' => false > > ); > > > > My localsql data should have been cleaned, no? > > > > I've seen strange behaviour that can explain something, if I make > ldap not browsable (I would), I can't browse localsql. Seems there is > a single api for both sources > > > > Just trying to debug: > > > > in horde-webmail-1.2.1/turba/lib/api.php (line 234) > > /* Only attempt share removal if we have shares configured */ > > if ($_SESSION['turba']['has_share']) { > > $shares = &$GLOBALS['turba_shares']->listShares( > > $user, PERMS_EDIT, $user); > > > > /* Look for the deleted user's default share and remove it */ > > foreach ($shares as $share) { > > Horde::logMessage('tracedom3 > '.$share->get('params'), __FILE__, __LINE__, PEAR_LOG_ERR); > > $params = @unserialize($share->get('params')); > > /* Only attempt to delete the user's default share */ > > if (!empty($params['default'])) { > > $config = Turba::getSourceFromShare($share); > > $driver = &Turba_Driver::singleton($config); > > $result = $driver->removeUserData($user); > > if (is_a($result, 'PEAR_Error')) { > > Horde::logMessage($result, __FILE__, __LINE__, > PEAR_LOG_ERR); > > $hasError = true; > > } > > } > > } > > > > $share->get('params') returns nothing, so localsql is not cleaned > > > > Data was in turba_shares > > share_id share_name share_owner share_flags perm_creator > perm_default perm_guest attribute_name attribute_desc > attribute_params > > 103 r9906146 r9906146 0 0 0 0 Carnet d'adresses de > Emmanuel XX NULL NULL > > > > Hope this helps > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers