IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

[eZ Publish] Création d'une authentification CAS


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre régulier
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2010
    Messages
    73
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2010
    Messages : 73
    Points : 110
    Points
    110
    Par défaut [eZ Publish] Création d'une authentification CAS
    Bonjour,
    Je dois développer un accès d'authentification CAS pour ma partie d'administration.
    J'étais parti du principe de m'appuyer sur la version développée sur le site principal de mon travail, qui cette dernière a été développé par une entreprise dont je tairais le nom mais leur extension est un rude bordel auquel on ne comprends rien et tout est éparpillé dans plusieurs fichiers ini et dans d'autres extensions.
    Donc j'ai essayé de me baser sur cet article :
    http://www.lolart.net/blog/ez-publis...ans-ez-publish
    Mais apparemment ça ne fonctionne pas le moindre du monde ou alors j'ai mal compris le système d'arborescence.
    Pour l'instant, j'ai suivi à la lettre le tuto donc j'ai créé mon répertoire sso_handler dans extension/mon_extension/sso_handler.
    Est-ce la bonne démarche ?

  2. #2
    Membre habitué
    Homme Profil pro
    VP Community
    Inscrit en
    Septembre 2011
    Messages
    63
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : VP Community
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 63
    Points : 126
    Points
    126
    Par défaut Quelques contributions existantes
    Bonjour azrael62,

    Quelques contributions existent, cela peut valoir le coup de jeter un oeil :


    Cheers,
    --
    Nicolas

  3. #3
    Membre régulier
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2010
    Messages
    73
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2010
    Messages : 73
    Points : 110
    Points
    110
    Par défaut
    Bon en étudiant la version actuelle plus les versions que vous m'avez proposé , j'ai à peu près réussi mis à part que j'ai ce message :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    CAS Authentication wanted!
     
    You should already have been redirected to the CAS server. Click here to continue.
     
    phpCAS 1.0.1 using server https://auth.univ-artois.fr:443/cas/ (CAS 2.0)
    Fatal error: The web server did not finish its request
    The execution of eZ Publish was abruptly ended, the debug output is present below.
    et ce long ezdebug
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
     
    eZ debug
     
    Timing:	Jul 20 2012 08:36:59
    Script start
    Warning: PHP: E_DEPRECATED	Jul 20 2012 08:36:59
    Assigning the return value of new by reference is deprecated in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 1599
    Warning: PHP: E_DEPRECATED	Jul 20 2012 08:36:59
    Assigning the return value of new by reference is deprecated in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 1636
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::setDebug() should not be called statically in /var/www/site/prod/www/extension/kcasldap/classes/KCasUtils.class.php on line 45
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::trace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 414
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 494
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 495
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::client() should not be called statically in /var/www/site/prod/www/extension/kcasldap/classes/KCasUtils.class.php on line 50
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 290
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 308
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 508
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 614
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 316
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::setNoCasServerValidation() should not be called statically in /var/www/site/prod/www/extension/kcasldap/classes/KCasUtils.class.php on line 52
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 1312
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 1317
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::checkAuthentication() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/login_handler/ezkcasloginuser.php on line 27
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 879
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 740
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 797
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 864
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::trace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 905
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 494
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 495
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 909
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::trace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 835
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 494
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 495
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 838
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::trace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 777
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 494
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 495
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 921
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 323
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceBegin() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 2196
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 505
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 520
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 2238
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceEnd() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 338
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::backtrace() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 534
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 537
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 924
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::getVersion() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 55
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::getVersion() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 55
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::traceExit() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS/client.php on line 930
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 547
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 549
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 549
    Strict: PHP: E_STRICT	Jul 20 2012 08:36:59
    Non-static method phpCAS::log() should not be called statically, assuming $this from incompatible context in /var/www/site/prod/www/extension/kcasldap/lib/CAS/CAS.php on line 549
    Mon but étant d'atterrir directement sur la page d'authentification de mon serveur Cas.
    Je précise , je travaille sur la Community 2012.5.
    La version du script Cas que j'ai sur le serveur du site principal est prévue pour la 4.0.1, ce qui est logique vu que la version d'ez publish du site principal est en 4.0.1

    Pouvez-vous me dire pourquoi cela ne fonctionne pas correctement ?

  4. #4
    Membre habitué
    Homme Profil pro
    VP Community
    Inscrit en
    Septembre 2011
    Messages
    63
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : VP Community
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 63
    Points : 126
    Points
    126
    Par défaut
    Je donnais la liste des extensions existantes à titre indicatif, mais je ne les ai pas utilisées moi-même. Il peut être intéressant de poster un message soit sous le forum de l'extension utilisée sur projects.ez.no, soit dans les forums sur share.ez.no.

  5. #5
    Membre régulier
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2010
    Messages
    73
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2010
    Messages : 73
    Points : 110
    Points
    110
    Par défaut
    cela doit être du à un problème de configuration , j'ai testé la version de mon site principal en local sur ma Ubuntu et ça fonctionne très bien, donc contrairement à ce que je pensais c'est pas un problème de la version du phpCas ou tout simplement il y a un mécanisme qui redirige automatiquement vers le serveur d'authentification sans montrer cette affreuse page d'erreur.
    Mais bon j'avais testé avec smileCas et j'arrivais au même résultat.
    Après je me vois mal demandé à l'entreprise qui a développé le site principal comment ils ont fait pour rediriger automatiquement vers le serveur d'authentification mais néanmoins ils ont une manière de développer qui protège bien leurs sources vu que c'est tellement anarchique que ça devient difficile derrière pour un développeur de comprendre la structure du site, surtout quand on débute sur eZ Publish.
    Fin bref, je vais écouter tes conseils et voir sur le site d'eZ Publish.

  6. #6
    Membre régulier
    Homme Profil pro
    Développeur Web
    Inscrit en
    Novembre 2010
    Messages
    73
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Pas de Calais (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Service public

    Informations forums :
    Inscription : Novembre 2010
    Messages : 73
    Points : 110
    Points
    110
    Par défaut
    J'ai re-testé le tutoriel Lolart avec les indications de diUPS et ça ne fonctionne toujours pas.
    Mon écran reste l'écran de connexion d'eZ Publish au lieu de m'afficher celui de mon serveur Cas (Capture d'écran ci-jointe)

    Pour ce qui est de mon code , il se décompose comme suivant à partir de la racine du site :
    extension/ezcas -> lib/cas ( version client 1.2.2)
    ->sso_handler/ezcasssohandler.php
    ->settings/cas.ini.php
    ->settings/site.ini.append.php

    Je le rappelle je travaille sur la version eZ Publish 4.7.

    Voici le code contenu dans mes pages :
    site.ini.append.php
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
     
    <?php /* #?ini charset="utf-8"?
    
    [UserSettings]
    ExtensionDirectory[]=ezcas
    SingleSignOnHandlerArray[]=Cas
    
    */ ?>
    cas.ini.php
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
     
    <?php /* #?ini charset="utf-8"?
    
    [CasSettings]
    # Hostname of the CAS server
    CasHost='Nom de mon serveur CAS"
    # SSL Port to use to connect to the server
    CasPort=443
    # URL use after logout
    CasRedirect="Adresse de redirection"
    # Cas Url
    CasUri=/cas/
    # If set, CAS client debug message are written to the specified file
    CasDebugLogFile="Adresse de mon log Cas"
    
    
    */ ?>
    ezcasssohandler.php

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
     
    <?php
     
    /*
    CAS Login Handler for ezPublish
    
    */
    $test_CAS=false;
    class eZCasSSOHandler {
    	//Constructeur, initialise la connexion
    	public function __construct()
    	{
    		static $test_CAS;
    		$CASIni   =& eZINI::instance( 'cas.ini' );
    		$casHost  =& $CASIni->variable('CasSettings','CasHost');
    		$casPort  =& intval($CASIni->variable('CasSettings','CasPort'));
    		$casUri   =& $CASIni->variable('CasSettings','CasUri');
    		$casDebugLogFile =& $CASIni->variable('CasSettings','CasDebugLogFile');
     
    		//Permet d'éviter une double connexion au serveur CAS
    		if($test_CAS == false)
    		{
    			phpCAS::client(CAS_VERSION_2_0, $casHost,$casPort,$casUri, false);
    			phpCAS::setNoCasServerValidation();
    			$test_CAS=true;
    		}
    	}
     
     
    	/**
    	 * Retournez un objet eZUser a loguer dans eZ Publish
    	 * Si l'authentification echoue, retournez false
    	 */
    	public function handleSSOLogin()
    	{
    			$currentUser = false; // Valeur par defaut que l'on retourne si l'authentification echoue
     
    		//Si un utilisateur est authentifié on le récupère.
    		if (phpCAS::checkAuthentication())
    		{
    			$currentUser = eZUser::fetchByName(phpCAS::getUser());
     
    			//Si l'utilisateur n'est pas connu dans eZPublish
    			if(!is_object( $currentUser ))
    			{
    				$currentUser=false;
    			}
    		}
     
    		return ($currentUser);
    	}
    }
     
    ?>
    Ai-je fait une erreur dans l'un de mes fichiers pour que l'affichage ne soit pas celui désirer ?
    En vous remerciant d'avance.
    Images attachées Images attachées  

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [eZ publish] Création d'un lien cliquable sur une image
    Par tamiii dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 6
    Dernier message: 23/12/2009, 14h13
  2. [eZ Publish 4.1] Création d'une extension
    Par nanu dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 7
    Dernier message: 22/12/2009, 15h39
  3. [eZ Publish] création d'une nouvelle classe
    Par easyjava dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 2
    Dernier message: 18/12/2007, 08h28
  4. Création d'une Requette en VBA (2nd cas)
    Par Frenchguy dans le forum VBA Access
    Réponses: 1
    Dernier message: 26/06/2007, 16h24
  5. Réponses: 5
    Dernier message: 22/06/2007, 14h55

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo