steve wrote: > Blues, > > I do have a a Linux computer. However it is an SME linux computer > which is somewhat custom. > I have checked and it does not have the the regular programs on it > always, Like ldapsearch. I have done a locate on this and it does not > come up. However Im happy to seeing if you can come up with another > program that I have existing on the system that might help. My thought > is that if I can do it with a straight command this might give me the > syntax for the Printer. or tell me if something is broken. yum -y install openldap-clients
That will install ldapsearch and other ldap tools. SME is based on Redhat so that'll give you what you need. Then you can try this...BUT BUT BUT...you must have the password and ALSO the name of the/a Domain Administrator. This will allow you to search just the users ou on the server: ldapsearch -x -h ip.of.the.ldap.server.here -b ou=users,dc=mydomain,dc=com -D cn=admin,dc=mydomain,dc=com -W cn=admin: admin must be a Domain Administrator If your system allowed anonymous binding you could do something like this and show the whole directory(those areas allowed). Some systems have a result limit by default so you don't kill the server. Your search string should be more refined as to not display things you don't need to see. Imagine millions of entries/queries pouring out before your eyes...it can wipe a server out. ldapsearch -x -h ip.of.the.ldap.server.here -b dc=mydomain,dc=com If a password is required you must do this: ldapsearch -x -h ip.of.the.ldap.server.here -b dc=mydomain,dc=com -D cn=admin,dc=mydomain,dc=com -W The two searches above automatically do a sub objectclass=* search(append '-s sub "objectclass=*"' to the search string) which means show everything in the given directory, so you don't need to specify it. ldapsearch -x -h ip.of.the.ldap.server.here -b dc=mydomain,dc=com -D cn=admin,dc=mydomain,dc=com -W -s sub "objectclass=*" Bryan > > Regards > > > On Jan 20, 1:25 pm, Blues Renegade <[email protected]> wrote: >> "If you had access to the command line on a Linux box I could show you >> how to display the whole directory." Bryan, do tell, please. Thanks! John >> >> -- A healthy diet includes Linux, Linux and more Linux.
-- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
