Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So, I need to see if anyone here knows much about Oracle's internet directory software. It was installed and is performing ldap duties. It is on a rhel 6.10 server, and the software version is 11g.
So, currently we have a solaris server, but different software, doing ldap. I have another server that I have a perl script on. This script queries the ldap server for names, based on employment roles, and then drops them in a nice little file. Well this old server is going away and so I need to see about getting the scripts to do the same with the new ldap server.
I think I have everything correct in the script, but when I run it, I get a:
IO::Socket::INET: connect: Connection refused at ./newpeople.pl line 105, <DATA> line 522.
Seeing as how connection is refused, I think it is something on the ldap server. There is currently no firewall on either server, and the nerwork guy things whatever ports need to be open, should be. Same as what it was using before, anyways.
I know this is very little really go off of. The server logs show nothing wrong. I don't know the oracle log location, I didn't set it up. The guy that did, left last week before figuring this out.
So, I've given the info that I currently have.
If anyone has used OID, and either has an idea, or knows the log location, let me know.
I think I have everything correct in the script, but when I run it, I get a:
IO::Socket::INET: connect: Connection refused at ./newpeople.pl line 105, <DATA> line 522.
Seeing as how connection is refused, I think it is something on the ldap server. There is currently no firewall on either server, and the nerwork guy things whatever ports need to be open, should be. Same as what it was using before, anyways.
I know this is very little really go off of. The server logs show nothing wrong. I don't know the oracle log location, I didn't set it up. The guy that did, left last week before figuring this out.
So, I've given the info that I currently have.
If anyone has used OID, and either has an idea, or knows the log location, let me know.
Thanks
I'd start debugging by outputting what the connection command on line 522 is using to connect.
I agree that the connection is being refused, but you have to do some debugging of the perl code to find out why.
I don't know where the logs are, but Oracle or RedHat support should be able to help you with that.
Just do an lsof -p pid on the process as the directory server user or root. Connection refused usually means there is nothing listening on that port at that address, although some firewalls will respond with that rather than silently dropping packets.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.