On Jun 11, 2010, at 4:50 AM, Cserna, Zsolt wrote:
> > The DBAPI is python-sybase (http://python-sybase.sourceforge.net/). > > Here is an example: > > conn = Sybase.connect(hostname, "", "", delay_connect=1) > conn.set_property(Sybase.CS_SEC_NETWORKAUTH, Sybase.CS_TRUE) > conn.set_property(Sybase.CS_SEC_SERVERPRINCIPAL, principal) > conn.connect() > > The variable principal would come from connection string. OK that is fine, is the above part of some larger pattern of connection styles ? like is there some other series of things I can do ater setting NETWORKAUTH to TRUE , other options ? if we want to make a feature out of this, it would be best to suit the whole range of use cases. > > > Zsolt > > >> -----Original Message----- >> From: sqlalchemy@googlegroups.com >> [mailto:sqlalch...@googlegroups.com] On Behalf Of Michael Bayer >> Sent: Thursday, June 10, 2010 15:58 >> To: sqlalchemy@googlegroups.com >> Subject: Re: [sqlalchemy] Kerberos authentication with sybase >> >> if you want to show me how that's done with your DBAPI (what >> DBAPI is this?), sure, though if its something that you pass >> in via **kw to DBAPI.connect(), you can already do that by >> passing connect_args to create_engine(), or adding them onto >> the querystring "db://...?foo=bar". >> >> >> >> On Jun 10, 2010, at 9:10 AM, Cserna, Zsolt wrote: >> >>> >>> Hi all, >>> >>> Is there any plan to add kerberos authentication to the >> sybase engine in sqlalchemy? >>> >>> I've implemented it but it's using the creator parameter of >> the create_engine function, which is ok, but in certain >> circumstances when the application using sqlalchemy uses >> configuration from a text file, I'm not able to do it easily >> (in pylons I need to modify my templates, or add a bunch of >> code to each project). >>> >>> It would be nice if sqlalchemy would be able to accept the >> server's principal specified in the connection string somehow >> - and if it's specified use kerberos to authenticate the client. >>> >>> Is it possible to implement this modification in >> sqlalchemy? I'm happy to contribute my current implementation. >>> >>> Thanks, >>> Zsolt >>> >>> >> ---------------------------------------------------------------------- >>> ---- >>> NOTICE: If received in error, please destroy, and notify >> sender. Sender does not intend to waive confidentiality or >> privilege. Use of this email is prohibited when received in >> error. We may monitor and store emails to the extent >> permitted by applicable law. >>> >>> -- >>> You received this message because you are subscribed to the >> Google Groups "sqlalchemy" group. >>> To post to this group, send email to sqlalch...@googlegroups.com. >>> To unsubscribe from this group, send email to >> sqlalchemy+unsubscr...@googlegroups.com. >>> For more options, visit this group at >> http://groups.google.com/group/sqlalchemy?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the >> Google Groups "sqlalchemy" group. >> To post to this group, send email to sqlalch...@googlegroups.com. >> To unsubscribe from this group, send email to >> sqlalchemy+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/sqlalchemy?hl=en. >> >> > -------------------------------------------------------------------------- > NOTICE: If received in error, please destroy, and notify sender. Sender does > not intend to waive confidentiality or privilege. Use of this email is > prohibited when received in error. We may monitor and store emails to the > extent permitted by applicable law. > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalch...@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.