From 9499f9fea7bafff20de4b9529a6a47eb5483c2b7 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 12 Jun 2011 16:07:15 -0400 Subject: [PATCH] Tabs to spaces in LDAP post. --- posts/LDAP.mdwn | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/posts/LDAP.mdwn b/posts/LDAP.mdwn index 8d2899f..570cbcd 100644 --- a/posts/LDAP.mdwn +++ b/posts/LDAP.mdwn @@ -128,8 +128,8 @@ to assign them to another department? We can use aliases ([RFC works, lets create a test OU to play with: $ emacs /tmp/test.ldif - $ cat /tmp/test.ldif - version: 1 + $ cat /tmp/test.ldif + version: 1 dn: ou=test, dc=example,dc=com objectClass: organizationalUnit ou: testing @@ -138,12 +138,12 @@ works, lets create a test OU to play with: Now assign one of your people to that group: - $ emacs /tmp/alias.ldif + $ emacs /tmp/alias.ldif $ cat /tmp/alias.ldif - version: 1 - dn: cn=Jane Doe, ou=test,dc=example,dc=com - objectClass: alias - aliasedObjectName: cn=Jane Doe, ou=people,dc=example,dc=com + version: 1 + dn: cn=Jane Doe, ou=test,dc=example,dc=com + objectClass: alias + aliasedObjectName: cn=Jane Doe, ou=people,dc=example,dc=com $ ldapadd -D "cn=Manager,dc=example,dc=com" -xW -f /tmp/alias.ldif $ rm /tmp/alias.ldif @@ -151,8 +151,8 @@ The `extensibleObject` class allows us to add the DN field, without it you get: $ ldapadd -D "cn=Manager,dc=example,dc=com" -xW -f /tmp/alias.ldif - Enter LDAP Password: - adding new entry "cn=Jane Doe, ou=test,dc=example,dc=com" + Enter LDAP Password: + adding new entry "cn=Jane Doe, ou=test,dc=example,dc=com" ldap_add: Object class violation (65) additional info: attribute 'cn' not allowed -- 2.26.2