directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r547991 - /directory/sandbox/szoerner/groovyldap/src/main/groovy/demoAdd.groovy
Date Sat, 16 Jun 2007 22:21:39 GMT
Author: szoerner
Date: Sat Jun 16 15:21:38 2007
New Revision: 547991

URL: http://svn.apache.org/viewvc?view=rev&rev=547991
Log:
Simplify the map creation of the entry 

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

Modified: directory/sandbox/szoerner/groovyldap/src/main/groovy/demoAdd.groovy
URL: http://svn.apache.org/viewvc/directory/sandbox/szoerner/groovyldap/src/main/groovy/demoAdd.groovy?view=diff&rev=547991&r1=547990&r2=547991
==============================================================================
--- directory/sandbox/szoerner/groovyldap/src/main/groovy/demoAdd.groovy (original)
+++ directory/sandbox/szoerner/groovyldap/src/main/groovy/demoAdd.groovy Sat Jun 16 15:21:38
2007
@@ -3,12 +3,12 @@
 con = new LDAPConnection(hostname: 'zanzibar', port: 10389)
 con.connect('uid=admin,ou=system', 'secret');
 
-heather = [:]
-heather.objectclass = ['top', 'person']
-heather.sn = 'Nova'
-heather.cn = 'Heather Nova'
-
+heather = [
+  objectclass: ['top', 'person'],              
+  sn: 'Nova',
+  cn: 'Heather Nova'
+]
+         
 con.add('cn=Heather Nova,dc=example,dc=com', heather)
 
-   
 con.disconnect()



Mime
View raw message