doc/text/tutorial.textile in activeldap-3.1.0 vs doc/text/tutorial.textile in activeldap-3.1.1

- old
+ new

@@ -47,10 +47,11 @@ h3. Installation Assuming all the requirements are installed, you can install by gem. <pre> +!!!plain # gem install activeldap </pre> Now as a quick test, you can run: @@ -152,10 +153,11 @@ As you can see, this method is used for defining how this class maps in to LDAP. Let's say that my LDAP tree looks something like this: <pre> +!!!plain * dc=dataspill,dc=org |- ou=People,dc=dataspill,dc=org |+ ou=Groups,dc=dataspill,dc=org \ |- cn=develop,ou=Groups,dc=dataspill,dc=org @@ -170,10 +172,11 @@ as the beginning of the distinguished name. Just for clarity, here's how the arguments map out: <pre> +!!!plain cn=develop,ou=Groups,dc=dataspill,dc=org ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ :dn_attribute | | :prefix | :base from setup_connection @@ -211,10 +214,11 @@ This method allows an extension class to make use of other extension classes tying objects together across the LDAP tree. Often, user objects will be members of, or belong_to, Group objects. <pre> +!!!plain * dc=dataspill,dc=org |+ ou=People,dc=dataspill,dc=org \ |- uid=drewry,ou=People,dc=dataspill,dc=org |- ou=Groups,dc=dataspill,dc=org @@ -587,10 +591,11 @@ h4. Setting up Create directory for scripts. <pre> -mkdir -p ldapadmin/objects +!!!plain +% mkdir -p ldapadmin/objects </pre> In ldapadmin/objects/ create the file user.rb: <pre>