\documentclass{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage{geometry}
\geometry{top=15mm, bottom=15mm, left=1cm, right=1cm}
\usepackage[french]{babel}
\usepackage{pslatex}
\usepackage[colorlinks=true,urlcolor=black]{hyperref}
\usepackage{graphicx}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\footrulewidth}{0.4pt}
\fancyfoot[L]{Uubu.fr}
\fancyfoot[R]{dim. sept. 8 09:31:26 CEST 2013}
\lfoot{\Large \textit{Uubu.fr}}
\hypersetup{pdfinfo={
Title={ldapurl},
Author={Sylvain Girod},
Creator={Bash script from uubu.fr's format version 1},
Producer={Bash script and PDFLaTeX},
Subject={Outil de formatage d’URL LDAP},
CreationDate={D:20130908093126},
ModDate={D:20130908093126},
Keywords={LDAP;OpenLDAP;Lightweight Directory Access Protocol}
}}
\begin{document}
 
\begin{center}
{\Huge ldapurl }
\end{center}
\vspace{1cm}
 
\begin{flushleft}
 
{\large Outil de formatage d’URL LDAP}
 
\vspace{10mm}
 
\vspace{1cm}{\huge OPTIONS }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} -a attrs]{Liste de sélecteur d’attributs}
\item[\hspace{1mm} -b searchbase]{Point de départ pour la recherche}
\item[\hspace{1mm} -e \texttt{[}!\texttt{]}ext\texttt{[}=extparam\texttt{]}]{Spécifie les extensions générales. ! indique la criticité}
\item[\hspace{1mm} -E \texttt{[}!\texttt{]}ext\texttt{[}=extparam\texttt{]}]{Spécifie les extensions de recherche. ! indique la criticité}
\item[\hspace{1mm} -H ldapuri]{URI du serveur LDAP}
\item[\hspace{1mm} -S scheme]{Schema d’URL}
\item[\hspace{1mm} -s base|one|sub|children]{Scope de recherche}
\end{description}
 
\vspace{1cm}{\huge Extensions Générales }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} \texttt{[}!\texttt{]}assert=<filter>]{un filtre RFC 4515}
\item[\hspace{1mm} !authzid=<authzid>]{"dn :<dn>" ou "u :<user>"}
\item[\hspace{1mm} \texttt{[}!\texttt{]}bauthzid]{Contrôle authzid RFC 3829 authzid}
\item[\hspace{1mm} \texttt{[}!\texttt{]}chaining\texttt{[}=<resolve>\texttt{[}/<cont>\texttt{]}\texttt{]}]{}
\item[\hspace{1mm} \texttt{[}!\texttt{]}manageDSAit]{}
\item[\hspace{1mm} \texttt{[}!\texttt{]}noop]{}
\item[\hspace{1mm} ppolicy]{}
\item[\hspace{1mm} \texttt{[}!\texttt{]}postread\texttt{[}=<attrs>\texttt{]}]{(a comma-separated attribute list)}
\item[\hspace{1mm} \texttt{[}!\texttt{]}preread\texttt{[}=<attrs>\texttt{]}]{(a comma-separated attribute list)}
\item[\hspace{1mm} \texttt{[}!\texttt{]}relax]{}
\item[\hspace{1mm} sessiontracking]{}
\item[\hspace{1mm} abandon, cancel, ignore SIGINT]{envoie une réponse abandon/cancel,ou ignore; Si critique, n’attend pas SIGINT.}
\end{description}
 
\vspace{1cm}{\huge Extensions de recherche }
 
\
 
\begin{description} \normalsize
\item[\hspace{1mm} !dontUseCopy]{}
\item[\hspace{1mm} \texttt{[}!\texttt{]}domainScope]{scope du domaine}
\item[\hspace{1mm} \texttt{[}!\texttt{]}mv=<filter>]{Filtre des valeurs de match}
\item[\hspace{1mm} \texttt{[}!\texttt{]}pr=<size>\texttt{[}/prompt|noprompt\texttt{]}]{paged results}
\item[\hspace{1mm} \texttt{[}!\texttt{]}sss=\texttt{[}-\texttt{]}<attr\texttt{[}:OID\texttt{]}>\texttt{[}/\texttt{[}-\texttt{]}<attr\texttt{[}:OID\texttt{]}>...\texttt{]}]{Tri coté serveur}
\item[\hspace{1mm} \texttt{[}!\texttt{]}subentries\texttt{[}=true|false\texttt{]}]{subentries}
\item[\hspace{1mm} \texttt{[}!\texttt{]}sync=ro\texttt{[}/<cookie>\texttt{]}]{LDAP Sync refreshOnly}
\item[\hspace{1mm} rp\texttt{[}/<cookie>\texttt{]}\texttt{[}/<slimit>\texttt{]}]{LDAP Sync refreshAndPersist}
\item[\hspace{1mm} \texttt{[}!\texttt{]}vlv=<before>/<after>(/<offset>/<count>| :<value>)]{virtual list view}
\item[\hspace{1mm} \texttt{[}!\texttt{]}deref=derefAttr:attr\texttt{[},attr\texttt{[}...\texttt{]}\texttt{]}\texttt{[} ;derefAttr:attr\texttt{[},attr\texttt{[}...\texttt{]}\texttt{]}\texttt{]}]{}
\item[\hspace{1mm} \texttt{[}!\texttt{]}<oid>\texttt{[}=<value>\texttt{]}]{}
\end{description}
 
\vspace{1cm}{\huge Exemples }
 
\
 
\hspace{1mm} \textbf{ldapurl -h ldap.example.com -b dc=example,dc=com -s sub -f "(cn=Some One)"} \\
\hspace{1mm} retourne: \\
\hspace{1mm} \textbf{ldap ://ldap.example.com:389/dc=example,dc=com ??sub ?(cn=Some\%20One)} \\
\hspace{1mm} \textbf{ldapurl -H ldap ://ldap.example.com:389/dc=example,dc=com ??sub ?(cn=Some\%20One)} \\
\hspace{1mm} retourne : \\
\hspace{1mm} \textbf{scheme : ldap} \\
\hspace{1mm} \textbf{host : ldap.example.com} \\
\hspace{1mm} \textbf{port : 389} \\
\hspace{1mm} \textbf{dn : dc=example,dc=com} \\
\hspace{1mm} \textbf{scope : sub} \\
\hspace{1mm} \textbf{filter : (cn=Some One)} \\
\end{flushleft}
\end{document}
