[Typo3] LDAP Authentification Service Cannot redeclare class tslib_cobj error
Torben A. Karlsen
taknews at ringkhs.dk
Mon May 2 08:34:42 CEST 2005
Hi again
I've followed the link and afterwards found a solution that works for me.
http://bugs.typo3.org/view.php?id=1012
require_once(PATH_tslib.'class.tslib_content.php');
if(!class_exists('tslib_cObj')) {
require_once(PATH_tslib.'class.tslib_content.php');
}
When I add the IF sentence I don't get the error anymore, but I'm not logged
in.
The user is added but with empty password. Is it supposed to be that way?
I'm not sure that my typoscript is right so please help me getting it right.
FEusers = LDAP_SYNC
FEusers {
enable = 1
table = fe_users
basedn = OU=XXXXXXX,DC=XXXXXX,DC=XXXXXX,DC=XXX
handleNotFound = 1
handleNotFound {
markHidden = 1
hiddenField = disable
markDeleted = 0
deletedField = deleted
delete = 0
identField = username
}
pid = 79
filter = (&(objectClass=person))
uniqueField = tx_ldapserver_dn
fields {
username = MAP_OBJECT
username.attribute = sAMAccountName
username.userFunc = tx_ldapserver->getSingleValue
tx_ldapserver_dn = MAP_OBJECT
tx_ldapserver_dn.special = DN
usergroup = MAP_OBJECT
usergroup {
attribute = memberOf
userFunc = tx_ldapserver->getFEGroups
userFunc {
pid = 79
table = fe_groups
identField = tx_ldapserver_dn
}
}
}
}
FEgroups < FEusers
FEgroups {
table = fe_groups
handleNotFound = 0
filter = (&(objectClass=group))
fields {
username >
usergroup >
title = MAP_OBJECT
title.attribute = cn
title.userFunc = tx_ldapserver->getSingleValue
}
}
FEauth = LDAP_AUTH
FEauth {
enable = 1
table = fe_users
SSO = 1
SSO.10.userFunc = tx_ldapauth_sv1->authFromGet
sync < FEusers
}
Torben
"Matteo Anceschi" <manceschi at arscolor.com> skrev i en meddelelse
news:mailman.1.1113465347.24685.typo3-english at lists.netfielders.de...
> Hi Paul,
>
>
> Paul Miller ha scritto:
> > We have got the same problem, with a similar setup, and are a bit stuck.
We are wanting to setup a single sign on system using the LDAP Auth from our
Active Directory for front end users but as soon as we switch on the FE
authorisation the site becomes unavailable with the above error.
> >
> > Switching it off restores the site to normality. We have not tried the
single sign on part yet - nor BE authorisation, but hopefully if someone out
there has an answer then please post it so that we can get on with our
lives!
> >
>
> Sincerely I don't have installed LDAP, but your error wake up my
> mono-neuron: perhaps you could have a look at this bug:
> http://bugs.typo3.org/view.php?id=958
>
> and try to have a look if in the main php function for LDAP you find a
> "require" instead of "require_once"
>
> HTH,
>
> Matteo
>
> --
>
>
> ______________________________________________
> Per una collaborazione migliore, segui le regole
> delle mailing list di Typo3: http://typo3.org/1438.0.html
More information about the TYPO3-english
mailing list