Month: June 2015

  • GIT push

    by

    in

    Create a new repo. Clone the repo from existingserver to your local machine. git remote rename origin upstream git remote add origin URL_TO_NEW_REPO git push origin master Now you can work with it just like any other git repo. To pull in patches from upstream, simply run git pull upstream master && git push origin…

  • Postgres database dump

    To export schema from postgres database use: pg_dump -s databasename

  • MemberOf LDAP Ubuntu

    The first LDIF file: dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulePath: /usr/lib/ldap olcModuleLoad: memberof Second LDIF file: dn: olcOverlay=memberof,olcDatabase={1}hdb,cn=config objectClass: olcMemberOf objectClass: olcOverlayConfig objectClass: olcConfig objectClass: top olcOverlay: memberof olcMemberOfDangling: ignore olcMemberOfRefInt: TRUE olcMemberOfGroupOC: groupOfNames olcMemberOfMemberAD: member olcMemberOfMemberOfAD: memberOf Add them into the config database using ldapadd (same as normal config stuff). It does not…