directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r547993 - /directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy
Date Sat, 16 Jun 2007 22:26:43 GMT
Author: szoerner
Date: Sat Jun 16 15:26:40 2007
New Revision: 547993

URL: http://svn.apache.org/viewvc?view=rev&rev=547993
Log:
output style simplified

Modified:
    directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy

Modified: directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy
URL: http://svn.apache.org/viewvc/directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy?view=diff&rev=547993&r1=547992&r2=547993
==============================================================================
--- directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy (original)
+++ directory/sandbox/szoerner/groovyldap/src/main/groovy/demoRead.groovy Sat Jun 16 15:26:40
2007
@@ -4,9 +4,12 @@
 con.connect('uid=admin,ou=system', 'secret');
 
 // Simple entry lookup via dn
-tori = con.read('cn=Tori Amos,dc=example,dc=com')
-println "DN: ${tori.dn}"
-println "Common name: ${tori.cn}"
-println "Object classes: ${tori.objectclass}"
+heather = con.read('cn=Heather Nova,dc=example,dc=com')
+
+print """
+DN: ${heather.dn}
+Common name: ${heather.cn}
+Object classes: ${heather.objectclass}
+"""
 
 con.disconnect()



Mime
View raw message