Python Forum
Need help in Python script to BIND with OID(Oracle Internet Directory) Server
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help in Python script to BIND with OID(Oracle Internet Directory) Server
#1
Hi,

I want to write python script to connect/bind to our OID(oracle internet directory) server

Server : oraoidvm.dba.com
Port : 3060

I tried to write below code, bit getting error:

Script :

-bash-3.2$ cat test.py
#!/usr/bin/python
from ldap3 import Connection, Server
server = Server( "ldap://oraoidvm.dba.com:3060" )
connection = Connection( server, user="cn=orcladmin", password="welcome1" )
connection.bind()
-bash-3.2$


Error:

-bash-3.2$ python test.py
Traceback (most recent call last):
File "test.py", line 5, in <module>
connection.bind()
File "build/bdist.solaris-2.10-i86pc/egg/ldap3/core/connection.py", line 512, in bind
File "build/bdist.solaris-2.10-i86pc/egg/ldap3/strategy/sync.py", line 56, in open
File "build/bdist.solaris-2.10-i86pc/egg/ldap3/strategy/base.py", line 141, in open
ldap3.core.exceptions.LDAPSocketOpenError: socket connection error while opening: [Errno 128] Network is unreachable


Python Version:

-bash-3.2$ python --version
Python 2.6.4
-bash-3.2$

OS:

-bash-3.2$ cat /etc/release
Oracle Solaris 10 1/13 s10x_u11wos_24a X86
Copyright © 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Assembled 17 January 2013
-bash-3.2$


I am able to telnet:


# telnet oraoidvm.dba.com 3060
Trying 192.168.1.150...
Connected to oraoidvm.dba.com.
Escape character is '^]'.



Please help or suggest.

Regards,
Kiran
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  No Internet connection when running a Python script basil_555 8 442 Mar-11-2024, 11:02 AM
Last Post: snippsat
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 316 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,003 Jun-29-2023, 11:57 AM
Last Post: gologica
  Running script with subprocess in another directory paul18fr 1 3,475 Jan-20-2023, 02:33 PM
Last Post: paul18fr
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,175 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  check if a file exist on the internet and get the size kucingkembar 6 1,714 Apr-16-2022, 05:09 PM
Last Post: kucingkembar
  How to bind a midi signal to tkinter? philipbergwerf 1 1,567 Feb-09-2022, 05:17 PM
Last Post: Gribouillis
  Real-Time output of server script on a client script. throwaway34 2 2,010 Oct-03-2021, 09:37 AM
Last Post: ibreeden
  python keeps opening script directory Tyrel 5 2,933 Aug-06-2021, 10:43 PM
Last Post: snippsat
  How to take the tar backup files form remote server to local server sivareddy 0 1,871 Jul-14-2021, 01:32 PM
Last Post: sivareddy

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020