Skip to content

Instantly share code, notes, and snippets.

View tecoholic's full-sized avatar

Arunmozhi tecoholic

View GitHub Profile
  1. install openldap
    • Left to the package manager
  2. import the gluu.ldif schema file
    • the generated schema is stored in the static/openldap/gluu.ldif
    • run command ldapadd -Q -Y EXTERNAL -H ldapi:/// -f static/openldap/gluu.ldif
  3. generate the indexes
  • add the index to the cn=config using the ldapmodify command ldapmodify -Y EXTERNAL -H ldapi:/// -f static/openldap/index.ldif
@tecoholic
tecoholic / schema_migration_notes.md
Last active September 22, 2016 17:33
Notes taken during converting the opendj schema to openldap schema

Schema LDIF

Change #1:

lastModifiedTime has been deprecated in favour of modifyTimeStamp - This was noted in the /etc/ldap/schema/cosine.schema

Change #2:

Using the attributes modifyTimeStamp and createTimeStamp are generating blocking errors

root@ubuntu-1gb-nyc3-01:~# slapcat -f schema_convert.conf -F ldif_output -n 0
<?php
session_start();
include("db_con.php");
?>
<html>
<head><title>PHP: Parse and Retrieve Data from XLSX Files | SPYROZONE.NET</title>
<meta charset="utf-8">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- jQuery -->
@tecoholic
tecoholic / app.py
Last active February 25, 2016 18:42
dummy gluuapi to help easily develop the web UI client
from flask import Flask, make_response
from flask_restful import Resource, Api
app = Flask(__name__)
@app.route('/')
def index():
return 'You are using the dummy version of gluu-api'
@tecoholic
tecoholic / t1.py
Last active November 26, 2015 17:15
import unittest
import time
import random
a = 8
b = 0
c = 0
d = 0
delivery_id_confirmations = [1,2,3,4,5,6,7,8,9,10,
1,2,3,5,6,7,8,9,10] # 4 missing
def find_unique_id(id_array):
for num in id_array:
if id_array.count(num) == 1:
print "Missing Delivery Man ID: {0}".format(num)
language: python
python:
- 2.7
install:
- pip install -r requirements.txt
- nvm install 0.10
- npm install
###############################################################################
# Filename: marsrover.py
# Author: Arunmozhi
# Email: [email protected]
# Date: 29 May 2015
###############################################################################
import sys
from math import sqrt
class Rover:
###############################################################################
# Filename: marsrover.py
# Author: Arunmozhi
# Email: [email protected]
# Date: 29 May 2015
###############################################################################
import sys
class Rover:
def __init__(self,pos):
#!/usr/bin/python
#-------------------------------------------------------------------------------
# File: wordint_sort.py
# Author: Arunomzhi P
# Date: Fri 29 May 2015
# Email: [email protected]
# Description: Sort a given line consisting of string and integer while retaining
# the position of string and integer.
# Usage: python wordint_sort.py