From: Hiroki S. <sak...@gm...> - 2007-02-20 16:25:52
|
Hi, I'm trying to use python-ldap with asyncore event loop. Since asyncore's event source is a socket object, I can't use search() and result() style polling. Is it possible to access a socket object in the LDAPObject instance? Regards, -- Hiroki Sakagami |
From: Alain S. <asp...@gm...> - 2007-02-22 13:06:48
|
http://www.openldap.org/lists/openldap-software/200102/msg00290.html hope this help On 2/20/07, Hiroki Sakagami <sak...@gm...> wrote: > Hi, > > I'm trying to use python-ldap with asyncore event loop. Since > asyncore's event source is a socket object, I can't use search() and > result() style polling. Is it possible to access a socket object in > the LDAPObject instance? > > Regards, > > -- > Hiroki Sakagami > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > -- -- Alain Spineux aspineux gmail com May the sources be with you |
From: <mi...@st...> - 2007-02-26 22:58:57
|
Alain Spineux wrote: > On 2/20/07, Hiroki Sakagami <sak...@gm...> wrote: >> Hi, >> >> I'm trying to use python-ldap with asyncore event loop. Since >> asyncore's event source is a socket object, I can't use search() and >> result() style polling. Is it possible to access a socket object in >> the LDAPObject instance? > > http://www.openldap.org/lists/openldap-software/200102/msg00290.html > > hope this help One would have to patch Modules/options.c and Modules/constants.c for this to theoretically work. Ciao, Michael. |
From: Hiroki S. <sak...@gm...> - 2007-02-28 16:56:02
|
Hi, Thank you for your reply. So, I can get the socket object by adding such a method manually. Is there any chance there will be support for LDAP_OPT_DESC in future python-ldap? -- Hiroki Sakagami On 2/27/07, Michael Str=F6der <mi...@st...> wrote: > Alain Spineux wrote: > > On 2/20/07, Hiroki Sakagami <sak...@gm...> wrote: > >> Hi, > >> > >> I'm trying to use python-ldap with asyncore event loop. Since > >> asyncore's event source is a socket object, I can't use search() and > >> result() style polling. Is it possible to access a socket object in > >> the LDAPObject instance? > > > > http://www.openldap.org/lists/openldap-software/200102/msg00290.html > > > > hope this help > > One would have to patch Modules/options.c and Modules/constants.c for > this to theoretically work. > > Ciao, Michael. > |
From: <mi...@st...> - 2007-03-01 08:18:02
|
Hiroki Sakagami wrote: > > Thank you for your reply. So, I can get the socket object by adding > such a method manually. Is there any chance there will be support for > LDAP_OPT_DESC in future python-ldap? Not sure what you mean with "socket object". Let's read http://www.openldap.org/lists/openldap-software/200102/msg00290.html once again: "You can use ldap_get_option(ld, LDAP_OPT_DESC, &sd) to access the primary file descriptor associated with a session handle." This function of the OpenLDAP C SDK returns just the OS' file descriptor. I never worked with asyncore. Not sure what you need. Ciao, Michael. |
From: <mi...@st...> - 2007-02-28 17:23:43
|
On 5:55:55 pm 2007-02-28 "Hiroki Sakagami" <sak...@gm...> wrote: > > Thank you for your reply. So, I can get the socket object by adding > such a method manually. Is there any chance there will be support for > LDAP_OPT_DESC in future python-ldap? Feel free to submit a patch. Ciao, Michael. |
From: Hiroki S. <sak...@gm...> - 2007-03-01 15:56:58
|
On 3/1/07, "Michael Str=F6der" <mi...@st...> wrote: > On 5:55:55 pm 2007-02-28 "Hiroki Sakagami" <sak...@gm...> wrote: > > > > Thank you for your reply. So, I can get the socket object by adding > > such a method manually. Is there any chance there will be support for > > LDAP_OPT_DESC in future python-ldap? > > Feel free to submit a patch. OK, I'm going to try to implement it. -- Hiroki Sakagami |