<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE directories SYSTEM "CAnnuaire.dtd" >
<directories ttl="86400">
   <tables>
      <table name="listeComposantes" fieldOrder="n2atrcomptri" type="ldap" base="ou=Tables,ou=Divers" scope="sub" filter="(objectclass=N2ClassComposante)" attrCode="cn" attrValue="description"  url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false"/>
      <table name="listeStatuts" type="static" scope="sub">
         <item code="PERS_ENS" value="Enseignant / Chercheur" />
         <item code="PERS_ENSV" value="Enseignant vacataire" />
         <item code="PERS_ATER" value="ATER / Moniteur / Lecteur" />
         <item code="PERS_THES" value="Etudiant en thèse" />
         <item code="PERS_EMP" value="Personnel ''IATOS/ITARF''" />
         <item code="PERS_STAG" value="Stagiaire" />
         <item code="PERS_RET" value="Personnel retraité" />
         <item code="AUTRE" value="Autre" />
      </table>
      <table name="listeDisciplines" type="ldap" base="ou=Tables,ou=Divers" scope="sub" filter="(objectclass=N2ClassDiscipline)" attrCode="cn" attrValue="description"  url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false"/>
      <table name="listeFormations" type="ldap" base="ou=Groups" scope="sub" filter="(&amp;(objectclass=n2ClassGroupe)(n2AtrGrpType=APO_N2))" attrCode="cn" attrValue="description"  url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false"/>
   </tables>
   
   <directory name="etudPublic" title="Annuaire public des étudiants" intro="Cet annuaire mentionne les personnes ayant accepté d'y figurer">
      <server url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" secure="false" />
	  	
      <request base="ou=people" scope="sub" maxEntries="100" identifiant="uid" identifiantLabel="Login">         
         <elemOfRequest type="direct" filter="(objectclass=n2ClassEtudiant)(supannListeRouge=FALSE)(n2atrtypepeople=APO_N2)" delStar="true" approx="false" />
         <elemOfRequest label="Nom" type="text" filter="(sn=%s*)" minChar="3"  delStar="true" approx="false"/>
         <elemOfRequest label="Prénom" type="text" filter="(givenname=%s*)" minChar="4"  delStar="true" approx="false"/>
         <elemOfRequest label="Formation" type="listTable" table="listeFormations" filter="(n2atrgroupe=%c)" delStar="true" approx="false" />
      </request>

      <card maxCard="1" tri="sn">
         <line label="Nom" type="direct" attribute="displayName" list="true" linkTable="code"  tabToCard="true"/>
         <line label="Adresse mail" type="direct" attribute="mail" list="false" linkTable="code" />
      	 <line label="Formation" type="table" table="listeFormations" attribute="n2atrgroupe" linkTable="code" list="true" /> 
      </card>
   </directory>

   <directory name="persPublic" title="Annuaire public du personnel" intro="Cet annuaire mentionne les personnes ayant accepté d'y figurer" link="http://horus2.univ-nancy2.fr/ANNUAIRE/">
      <server url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false" />
      <request base="ou=People" scope="sub" maxEntries="500" identifiant="uid" identifiantLabel="Login">
         <elemOfRequest type="direct" filter="(objectclass=inetOrgPerson)(supannListeRouge=FALSE)(!(n2atrtypepeople=APO*))" delStar="true" approx="false" />
         <elemOfRequest label="Nom" type="text" filter="(sn=%s*)" minChar="2" delStar="true" approx="false" />
         <elemOfRequest label="Composante" type="textTable" table="listeComposantes" filter="(n2atrperscompcode=%c)" searchValue="*%s*" delStar="true" approx="false" />
         <elemOfRequest label="Discipline" type="listTable" table="listeDisciplines" filter="(n2atrpersdiscipline=%c)" delStar="true" approx="false" />
      </request>

      <card maxCard="3" tri="sn" link="http://horus2.univ-nancy2.fr/ANNUAIRE/detail_pres.php?uid=%uid" >
         <line label="Nom" type="direct" attribute="displayName" list="true" tabToCard="true"/>
         <line label="Statut" type="table" table="listeStatuts" attribute="n2atrtypepeople" linkTable="code" list="false" />
         <line label="Composante" type="table" table="listeComposantes" attribute="n2atrperscompcode" list="true" linkTable="code" />
		 <line label="Responsabilité" type="direct" attribute="n2AtrPersResp" list="false" tabToCard="false"/>
         <line label="Mail" type="direct" attribute="mail" list="true" />
         <line label="Téléphone" type="direct" attribute="telephonenumber" list="false" />
         <line label="Fax" type="direct" attribute="facsimiletelephonenumber" list="false" />
      	 <line label="Adresse" type="direct" attribute="postaladdress" list="false" />
       </card>
   </directory>

   <directory name="etudPriv" title="Annuaire privé des étudiants">
      <server url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" secure="false" />

      <request base="ou=people" scope="sub" maxEntries="100" identifiant="uid" identifiantLabel="Login">         
         <elemOfRequest type="direct" filter="(objectclass=n2ClassEtudiant)(n2atrtypepeople=APO_N2)" delStar="true" approx="false" />
         <elemOfRequest label="Nom" type="text" filter="(sn=%s*)" minChar="3"  delStar="true" approx="false"/>
         <elemOfRequest label="Prénom" type="text" filter="(givenname=%s*)" minChar="4"  delStar="true" approx="false"/>
         <elemOfRequest label="Formation" type="listTable" table="listeFormations" filter="(n2atrgroupe=%c)" delStar="true" approx="false" />
      </request>

      <card maxCard="1" tri="sn">
         <line label="Nom" type="direct" attribute="displayName" list="true" linkTable="code"  tabToCard="true"/>
         <line label="Adresse mail" type="direct" attribute="mail" list="false" linkTable="code" />
      	 <line label="Formation" type="table" table="listeFormations" attribute="n2atrgroupe" linkTable="code" list="true" /> 
      </card>
   </directory>


   <directory name="persPriveSimple" title="Annuaire privé du personnel" link="http://horus2.univ-nancy2.fr/ANNUAIRE/">
      <server url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false" />
      <request base="ou=People" scope="sub" maxEntries="500" identifiant="uid" identifiantLabel="Login">
         <elemOfRequest type="direct" filter="(objectclass=inetOrgPerson)(!(n2atrtypepeople=APO*))" delStar="true" approx="false" />
         <elemOfRequest label="Login" type="text" filter="(uid=%s*)"  minChar="2" delStar="true" approx="false"/>
         <elemOfRequest label="Nom" type="text" filter="(sn=%s*)" minChar="2" delStar="true" approx="false" />
         <elemOfRequest label="Composante" type="listTable" table="listeComposantes" filter="(n2atrperscompcode=%c)" delStar="true" approx="false" />
      </request>

      <card maxCard="3" tri="sn" link="http://horus2.univ-nancy2.fr/ANNUAIRE/detail_pres.php?uid=%uid" >
         <line label="Login" type="direct" attribute="uid" list="true" tabToCard="true"/>
         <line label="Nom" type="direct" attribute="displayName" list="true" tabToCard="true"/>
         <line label="Statut" type="table" table="listeStatuts" attribute="n2atrtypepeople" linkTable="code" list="false" />
         <line label="Composante" type="table" table="listeComposantes" attribute="n2atrperscompcode" list="true" linkTable="code" />
		 <line label="Responsabilité" type="direct" attribute="n2AtrPersResp" list="false" tabToCard="false"/>
         <line label="Mail" type="direct" attribute="mail" list="true" />
         <line label="Téléphone" type="direct" attribute="telephonenumber" list="false" />
         <line label="Fax" type="direct" attribute="facsimiletelephonenumber" list="false" />
      	 <line label="Adresse" type="direct" attribute="postaladdress" list="false" />
       </card>
   </directory>
   
   <directory name="persPriveAvance" title="Annuaire privé du personnel (recherche avancée)" link="http://horus2.univ-nancy2.fr/ANNUAIRE/">
      <server url="ldap://ldap1.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr ldap://ldap2.univ-nancy2.fr:392/dc=univ-nancy2,dc=fr" binddn="" bindpass="" secure="false" />
      <request base="ou=People" scope="sub" maxEntries="500" identifiant="uid" identifiantLabel="Login">
         <elemOfRequest type="direct" filter="(objectclass=inetOrgPerson)(!(n2atrtypepeople=APO*))" delStar="true" approx="false" />
         <elemOfRequest label="Login" type="text" filter="(uid=%s*)"  minChar="2" delStar="true" approx="false"/>
         <elemOfRequest label="Nom" type="text" filter="(sn=%s*)" minChar="2" delStar="true" approx="false" />
         <elemOfRequest label="Composante" type="listTable" table="listeComposantes" filter="(n2atrperscompcode=%c)" delStar="true" approx="false" />
      </request>

      <card maxCard="3" tri="sn" link="http://horus2.univ-nancy2.fr/ANNUAIRE/detail_pres.php?uid=%uid" >
         <line label="Login" type="direct" attribute="uid" list="true" tabToCard="true"/>
         <line label="Nom" type="direct" attribute="displayName" list="true" tabToCard="true"/>
         <line label="Statut" type="table" table="listeStatuts" attribute="n2atrtypepeople" linkTable="code" list="false" />
         <line label="Composante" type="table" table="listeComposantes" attribute="n2atrperscompcode" list="true" linkTable="code" />
		 <line label="Responsabilité" type="direct" attribute="n2AtrPersResp" list="false" tabToCard="false"/>
         <line label="Mail" type="direct" attribute="mail" list="true" />
         <line label="Téléphone" type="direct" attribute="telephonenumber" list="false" />
         <line label="Fax" type="direct" attribute="facsimiletelephonenumber" list="false" />
      	 <line label="Adresse" type="direct" attribute="postaladdress" list="false" />
       </card>
   </directory>
</directories>
