From: Stuart Brand Date: 2006-07-11T00:39:01+09:00 Subject: Re: LDAP search and return Not to worry, I found a script that does what I want it to do anyway :) conn.search( 'ou=users,ou=nyc,dc=corp,dc=google,dc=com', LDAP::LDAP_SCOPE_SUBTREE, 'cn=*', ['cn']) do |x| count += 1 end Thanks anyway Stuart -- Posted via http://www.ruby-forum.com/.