From 25866f7509da2b024ba2f50d4b44c895c3974fc7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Tue, 8 May 2012 02:53:41 +0200 Subject: Diagrams. --- schemas/ldap.tex | 158 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 schemas/ldap.tex (limited to 'schemas/ldap.tex') diff --git a/schemas/ldap.tex b/schemas/ldap.tex new file mode 100644 index 0000000..d4a681e --- /dev/null +++ b/schemas/ldap.tex @@ -0,0 +1,158 @@ +\documentclass[10pt,a4paper]{article} +\usepackage[english]{babel} +\usepackage[T1]{fontenc} +\usepackage[utf8x]{inputenc} +\usepackage{array} +\usepackage{ae} +\usepackage{tikz} +\usetikzlibrary{trees,calc} + +\def\dn#1{\texttt{#1}} + +\newenvironment{entry}[1] + {\begin{minipage}[t][0pt][t]{10cm} + \texttt{#1} + \\[.1\baselineskip] \phantom{cn=}% + \begin{tabular}[!t]{@{}>{\ttfamily\bgroup}l<{\egroup}@{:~}% + >{\sffamily\bgroup}l<{\egroup}@{}}% + } + { \end{tabular} + \end{minipage}} + +\thispagestyle{empty} +\begin{document} + +\tikzset{ + ldaptree/.style = { + grow via three points={one child at (1cm,-1.5\baselineskip) and two children at (1cm,-1.5\baselineskip) and (1cm,-3\baselineskip)}, + growth parent anchor=south west, + edge from parent path={($(\tikzparentnode.south west)+(2.5ex,0)$) |- (\tikzchildnode.west)}, + }, + every node/.style = {anchor=west}, + dn/.style = {font=\ttfamily} +} + +\begin{tikzpicture}[ldaptree] + \node[dn] { {o=mailhosting,dc=fripost,dc=org} } + child { + node[dn] { ou=managers } + child { + node { + \begin{entry}{cn=gustav} + userPassword & \{SSHA\}xxxxxx + \end{entry} + } + } + child [missing] {} + child[dn] { + node { + \begin{entry}{cn=ljo} + userPassword & \dots + \end{entry} + } + } + } + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child { + node[dn] { ou=services } + child { + node { + \begin{entry}{cn=SMTP} + userPassword & \{SSHA\}xxxxxx + \end{entry} + } + } + child [missing] {} + child { + node { + \begin{entry}{cn=SASLauth} + userPassword & \dots + \end{entry} + } + } + } + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child { + node[dn] { ou=virtual } + child { + node { + \begin{entry}{dc=fripost.org} + isActive & TRUE + \end{entry} + } + child [missing] {} + child + { + node { + \begin{entry}{mailTarget=user@fripost.org} + mailLocalAddress & user-alias \\ + isActive & TRUE + \end{entry} + } + } + child [missing] {} + child [missing] {} + child + { node { \dn{mailTarget=\dots} } + } + child + { + node { + \begin{entry}{uid=user} + userPassword & \{SSHA\}xxxxxx \\ + isactive & TRUE + \end{entry} + } + } + child [missing] {} + child [missing] {} + child + { node { \dn{uid=\dots} } + } + } + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child [missing] {} + child { + node { + \begin{entry}{dc=example.org} + owner & \texttt{uid=user,dc=fripost.org,ou=virtual,\dots} \\ + isActive & TRUE + \end{entry} + } + child [missing] {} + child + { + node { + \begin{entry}{mailTarget=user@fripost.org} + mailLocalAddress & user \\ + isActive & TRUE + \end{entry} + } + } + child [missing] {} + child [missing] {} + child + { node { \dn{mailTarget=\dots} } + } + child + { node { \dn{uid=\dots} } + } + } + }; +\end{tikzpicture} + +\end{document} -- cgit v1.2.3