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 master.
2015/06/11
GIT push
Postgres database dump
To export schema from postgres database use:
pg_dump -s databasename
2015/06/04
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 automatically update the existing data in the database, so I needed to use slapcat to copy everything out into a temporary file, and visit each group, delete the group and add the same group back in again (forces the memberOf attributes to update correctly). If you are starting with an empty database, then it will correctly update the attributes as objects are added.
Also, note that “olcDatabase={1}hdb” is very typical, but not guaranteed to match your setup. Be sure to check that one.