<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.hs-schmalkalden.de/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.hs-schmalkalden.de/feed.php">
        <title>Wiki Rechenzentrum Hochschule Schmalkalden - python</title>
        <description></description>
        <link>https://wiki.hs-schmalkalden.de/</link>
        <image rdf:resource="https://wiki.hs-schmalkalden.de/_media/wiki/favicon.ico" />
       <dc:date>2026-04-26T18:38:38+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/python-base64sasl?rev=1723030752&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/python-getpass?rev=1723030752&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/python_easy_install?rev=1723030752&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/python_ldap?rev=1723030752&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/python_mysql?rev=1723030752&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.hs-schmalkalden.de/python/start?rev=1723030752&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.hs-schmalkalden.de/_media/wiki/favicon.ico">
        <title>Wiki Rechenzentrum Hochschule Schmalkalden</title>
        <link>https://wiki.hs-schmalkalden.de/</link>
        <url>https://wiki.hs-schmalkalden.de/_media/wiki/favicon.ico</url>
    </image>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/python-base64sasl?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python-base64sasl</title>
        <link>https://wiki.hs-schmalkalden.de/python/python-base64sasl?rev=1723030752&amp;do=diff</link>
        <description>Motivation

zum Test von imap-Servern wird der Nutzername und das Passwort base64-codiert erwartet.

der code

Allgemein:


python -c &#039;import base64; print base64.encodestring(&quot;hallo&quot;)&#039;


Nutzername und Passwort für postfix/sasl:


python -c &#039;import base64; print base64.encodestring(&quot;\000username\000passwort&quot;)&#039;</description>
    </item>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/python-getpass?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python-getpass</title>
        <link>https://wiki.hs-schmalkalden.de/python/python-getpass?rev=1723030752&amp;do=diff</link>
        <description>import getpass

...
c.simple_bind_s(&#039;uid=hansimglueck,ou=people,dc=fh-sm,dc=de&#039;,getpass.getpass())
...</description>
    </item>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/python_easy_install?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python_easy_install</title>
        <link>https://wiki.hs-schmalkalden.de/python/python_easy_install?rev=1723030752&amp;do=diff</link>
        <description>paket nur downloaden und auspacken

Motivation: ich möchte noch Änderungen am Source-Code vormehmen und erst danach das Paket installieren

easy_install -eb ~/projects python-ldap

Extracted editable version of python-ldap to /root/projects/python-ldap</description>
    </item>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/python_ldap?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python_ldap</title>
        <link>https://wiki.hs-schmalkalden.de/python/python_ldap?rev=1723030752&amp;do=diff</link>
        <description>&gt;&gt;&gt; import ldap
&gt;&gt;&gt; l = ldap.initialize(&#039;ldap://localhost:1390&#039;)
&gt;&gt;&gt; l.search_s(&#039;ou=Testing,dc=stroeder,dc=de&#039;,ldap.SCOPE_SUBTREE,&#039;(cn=fred*)&#039;,[&#039;cn&#039;,&#039;mail&#039;])
[(&#039;cn=Fred Feuerstein,ou=Testing,dc=stroeder,dc=de&#039;, {&#039;cn&#039;: [&#039;Fred Feuerstein&#039;]})]
&gt;&gt;&gt; r = l.search_s(&#039;ou=Testing,dc=stroeder,dc=de&#039;,ldap.SCOPE_SUBTREE,&#039;(objectClass=*)&#039;,[&#039;cn&#039;,&#039;mail&#039;])
&gt;&gt;&gt; for dn,entry in r:
&gt;&gt;&gt;   print &#039;Processing&#039;,repr(dn)
&gt;&gt;&gt;   handle_ldap_entry(entry)



def list_email(): 
  filter=&quot;(objectClass=person)&quot;
  attr=[&#039;mail&#039;,…</description>
    </item>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/python_mysql?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>python_mysql</title>
        <link>https://wiki.hs-schmalkalden.de/python/python_mysql?rev=1723030752&amp;do=diff</link>
        <description>allgemeine Syntax


import MySQLdb
conn=MySQLdb.connect(user=&quot;root&quot;,passwd=&quot;&quot;,db=&quot;somedb&quot;)
curs=conn.cursor()
curs.execute(&quot;&quot;&quot;select * from foobar&quot;&quot;&quot;)
allezeilen=curs.fetchall()
conn.close()


MySQLdb: übergabe von parametern an cursor.execute()
SQL</description>
    </item>
    <item rdf:about="https://wiki.hs-schmalkalden.de/python/start?rev=1723030752&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-08-07T11:39:12+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>start</title>
        <link>https://wiki.hs-schmalkalden.de/python/start?rev=1723030752&amp;do=diff</link>
        <description>Tipps und Tricks zu Python

Module

	*  Python und MySQL
	*  Python und LDAP

Tipps und Tricks

	*  Passwort auf der Kommandozeile abfragen
	*  Nutzername und Passwort für SASL Base64 encodieren
	*   Pakete installieren mit easy_install</description>
    </item>
</rdf:RDF>
