Lemonldap::Portal::Session - Perl extension for Lemonldap websso


Lemonldap-Portal-Session documentation  | view source Contained in the Lemonldap-Portal-Session distribution.

Index


NAME

Top

Lemonldap::Portal::Session - Perl extension for Lemonldap websso

SYNOPSIS

Top

  use Lemonldap::Portal::Session;

  my $paramxml = $test->{DefinitionSession} ; # $test is the result of XML  parsing 
  my $obj = Lemonldap::Portal::Session->init ($paramxml,'entry' =>$entry) ;







example :

Top



   XML input :

 <DefinitionSession>
	<ligne  id = "commentaire" 
		type = "single"
		cle ="commentaire"
		valeur= "mon commentaire est %buffer% merci"> 
	</ligne>
	<ligne  id = "mail" 
		type = "single"
		cle ="mail"
		valeur= "%mail%" >
	</ligne>
	<ligne  id = "roleprofil" 
		type = "single"
		cle ="%roleprofil;0%"
		valeur= "%roleprofil;1%" >
	</ligne>
	<ligne  id = "mefiapplicp" 
		type = "multi"
		cle ="%mefiapplicp;0%"
		primarykey="cp" 
		valeur= "%mefiapplicp;1%" >
	</ligne>

	<ligne  id = "dn" 
		type = "single"
		cle ="dn"
		valeur= "%dn%" >
	</ligne>

	<exp    id ="dn" 
	        type= "dnentry"
	      />
	<exp    id ="buffer" 
	        type= "constant"
		valeur=" ce  que je veux "
		/>

	<exp    id ="mail" 
	        type= "attrldap"
	        attribut= "mail" />

	<exp    id ="roleprofil" 
	        type= "attrldap"
	        attribut= "roleprofil" />
	<exp    id ="mefiapplicp" 
	        type= "attrldap"
	        attribut= "mefiapplicp" />

	


 </DefinitionSession>

after processing :

 Dumper ($obj) :

 $VAR1 = {
          'appli' => 'etoile',
          'commentaire' => 'mon commentaire est  ce  que je veux  merci',
          'mail' => 'germanlinux@yahoo.fr',
          'cp' => {
                  'appli1' => 'etoile1',
                  'appli2' => 'etoile2'
                },
          'dn' => 'uid=egerman-cp,ou=personnes,ou=cp,dc=demo,dc=net'
        };










DESCRIPTION

Top

Lemonldap::Portal::Session is a parser of XML description of session to keys,values of hash .

It is a piece of lemonldap websso framework . see 'eg' directory for implementation .

SEE ALSO

Top

Lemonldap(3), Lemonldap::NG::Portal

http://lemonldap.sourceforge.net/

AUTHOR

Top

Eric German, <germanlinux@yahoo.fr>

COPYRIGHT AND LICENSE

Top


Lemonldap-Portal-Session documentation  | view source Contained in the Lemonldap-Portal-Session distribution.