This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sender = "Chris Adams <[email protected]>" | |
recipients = [ "Chris Adams <[email protected]>", ] | |
msg = "test message" | |
smtp = smtplib.SMTP() | |
# To avoid hard-coding our SMTP server list we'll query the | |
# MX records for yale.edu using the Java JNDI API: | |
from javax.naming.directory import InitialDirContext | |
jndi_ctx = InitialDirContext() | |
mx_hosts = jndi_ctx.getAttributes("dns:///example.edu", ["MX"]).get("MX") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ../libpam-ldap-180/pam_ldap.c 2008-04-17 10:26:14.000000000 -0400 | |
+++ pam_ldap.c 2008-04-17 10:16:34.000000000 -0400 | |
@@ -2484,6 +2484,19 @@ | |
_get_user_info (pam_ldap_session_t * session, const char *user) | |
{ | |
char filter[LDAP_FILT_MAXSIZ], escapedUser[LDAP_FILT_MAXSIZ]; | |
+ char *test_attrs[] = { | |
+ "host", | |
+ "authorizedService", | |
+ "shadowExpire", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ../libpam-ldap-minimal/pam_ldap.c 2008-04-15 14:44:58.000000000 -0400 | |
+++ pam_ldap.c 2008-04-02 18:40:02.000000000 -0400 | |
@@ -1228,10 +1228,14 @@ | |
int rc = ldapssl_client_init (session->conf->sslpath, NULL); | |
if (rc != LDAP_SUCCESS) | |
{ | |
- syslog (LOG_ERR, "pam_ldap: ldapssl_client_init %s", | |
+ syslog (LOG_ERR, "pam_ldap: _open_session() failed with PAM_SERVICE_ERR: ldapssl_client_init failed: %s", | |
ldap_err2string (rc)); | |
return PAM_SERVICE_ERR; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
vmware-guestd --cmd "vmx.set_option synctime 0 1" | |
vmware-guestd --cmd "vmx.set_option time.synchronize.tools.startup 0 1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.5 | |
import ctypes | |
Security = ctypes.cdll.LoadLibrary('/System/Library/Frameworks/Security.framework/Versions/Current/Security') | |
class SecKeychainAttribute(ctypes.Structure): | |
_fields_ = [('tag', ctypes.c_char_p), | |
('length', ctypes.c_int32), | |
('data', ctypes.c_char_p)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
Wrapper for the core Keychain API: | |
http://developer.apple.com/documentation/Security/Reference/keychainservices/Reference/reference.html#//apple_ref/doc/uid/TP30000898-CH1-SW1 | |
Created by Chris Adams on 2009-01-06. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>Multi-Format Editor Example</title> | |
<!-- | |
Normal: | |
http://developer.yahoo.com/yui/articles/hosting/?animation&base&button&container&editor&element&fonts&layout&logger&menu&reset&reset-fonts&resize&selector&tabview&MIN | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import readline | |
except ImportError: | |
print "Module readline not available." | |
else: | |
import rlcompleter | |
readline.parse_and_bind("bind ^I rl_complete") |
OlderNewer