/[A3C]/bin
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Log of /bin

View Directory Listing Directory Listing


Sticky Revision:

Revision 236 - Directory Listing
Modified Sun Sep 7 21:22:10 2008 UTC (11 years, 2 months ago) by dpavlin
move strix sites import into module Strix::Import so
that command-line script and action can re-use it,
creating on-demand sync for sites.

Revision 235 - Directory Listing
Modified Sun Sep 7 21:08:58 2008 UTC (11 years, 2 months ago) by dpavlin
We also need to import sites for each instance, so that interface
works. This could be better done with sync-on-demand.

Revision 229 - Directory Listing
Modified Fri Jun 27 19:31:49 2008 UTC (11 years, 4 months ago) by dpavlin
A3C::LDAP::Server now function as full-featured LDAP relay server

- move code from bin/ldap-server.pl to A3C::LDAP::Server
- save cache of ldap searches (currently for debugging only,
  but I can envision falling back to cache if upstream
  server is unavailable)
- added ability to fork server in background (used in tests)

Revision 222 - Directory Listing
Modified Thu Jun 26 20:46:33 2008 UTC (11 years, 4 months ago) by dpavlin
simpliest possible data-dumping only LDAP server

Revision 198 - Directory Listing
Modified Tue Jun 17 23:04:00 2008 UTC (11 years, 5 months ago) by dpavlin
import sites from all strix instances

Revision 192 - Directory Listing
Modified Tue Jun 17 14:43:39 2008 UTC (11 years, 5 months ago) by dpavlin
rename import-strix.pl to import-strix-config.pl
because it well, imports config from php files

Revision 181 - Directory Listing
Modified Mon Jun 16 20:08:28 2008 UTC (11 years, 5 months ago) by dpavlin
make ldap2model use JiftyModelCreator and minor tweaks all over the place

Revision 179 - Directory Listing
Modified Mon Jun 16 19:40:21 2008 UTC (11 years, 5 months ago) by dpavlin
extract module writing and test creation into own package

Revision 178 - Directory Listing
Modified Mon Jun 16 19:11:55 2008 UTC (11 years, 5 months ago) by dpavlin
Simple model creator from PostgreSQL schema

$dbh->column_info doesn't give me enough useful data, so I will
have to ask PostgreSQL directly

Revision 176 - Directory Listing
Modified Mon Jun 16 17:43:10 2008 UTC (11 years, 5 months ago) by dpavlin
suggest to import towns

Revision 175 - Directory Listing
Modified Mon Jun 16 16:49:30 2008 UTC (11 years, 5 months ago) by dpavlin
make --strix option more clever

First import all hrEduOrg organizations from LDAP and then
sync organizations which have strix site

Revision 174 - Directory Listing
Modified Mon Jun 16 16:48:16 2008 UTC (11 years, 5 months ago) by dpavlin
big rename of StrixSite to StrixInstance, added sitemap and layout

rename creates huge diff, which is rather unfortunate, but we needed
to get terminology stright: sites are part of strix instances

Revision 154 - Directory Listing
Modified Sat Jun 14 22:03:45 2008 UTC (11 years, 5 months ago) by dpavlin
new bootstrap procedure and documentation

Revision 147 - Directory Listing
Modified Tue Jun 3 10:22:49 2008 UTC (11 years, 5 months ago) by dpavlin
more improvement in log output


Revision 146 - Directory Listing
Modified Tue Jun 3 10:10:20 2008 UTC (11 years, 5 months ago) by dpavlin
split errors only with debug flag and log errors as, well errors...

Revision 143 - Directory Listing
Modified Sat May 31 12:03:18 2008 UTC (11 years, 5 months ago) by dpavlin
Transfer strix php configuration files locally for processing

This can be replaced with NFS mount or something once we get A3C
into production to have live view of data

Revision 141 - Directory Listing
Modified Fri May 30 22:46:53 2008 UTC (11 years, 5 months ago) by dpavlin
When run with

./bin/import-ldap.pl --strix

it will import just organization which have strix site (which assume that
you allready imported strix sites before running this command)

Revision 140 - Directory Listing
Modified Fri May 30 22:02:19 2008 UTC (11 years, 5 months ago) by dpavlin
fix encoding

on-disk php files are in ISO-8859-2, so support that and require
that PostgreSQL encoding is UTF-8

Revision 139 - Directory Listing
Modified Fri May 30 21:16:08 2008 UTC (11 years, 5 months ago) by dpavlin
Added Strix site config importer

When invoked like:

./bin/import-strix.pl

it reports something like:

INFO - 539 Strix sites imported

Not bad :-)

Revision 132 - Directory Listing
Modified Thu May 29 22:37:20 2008 UTC (11 years, 5 months ago) by dpavlin
rename import script to more descriptive name

Revision 130 - Directory Listing
Modified Mon May 26 18:08:47 2008 UTC (11 years, 5 months ago) by dpavlin
import towns on database creation

Revision 129 - Directory Listing
Modified Mon May 26 18:08:02 2008 UTC (11 years, 5 months ago) by dpavlin
cleanup test databases

Revision 117 - Directory Listing
Modified Thu May 15 18:33:58 2008 UTC (11 years, 6 months ago) by dpavlin
make pod pass test :-)

Revision 116 - Directory Listing
Modified Thu May 15 17:38:13 2008 UTC (11 years, 6 months ago) by dpavlin
warn when we can't find some of columns in model istead
of dieing in ugly death

Revision 114 - Directory Listing
Modified Thu May 15 17:35:45 2008 UTC (11 years, 6 months ago) by dpavlin
since we can't really reliably tell which columns should database
have by just looking into schema, we need to enable users to specify
additional classes to mix them in.

Also generate really nice perl code now, which even works! YAY!

Revision 113 - Directory Listing
Modified Thu May 15 16:22:17 2008 UTC (11 years, 6 months ago) by dpavlin
kill currently running jifty server so that we *CAN* dropdb

Revision 111 - Directory Listing
Modified Wed May 14 16:50:02 2008 UTC (11 years, 6 months ago) by dpavlin
cleanup code a bit, better error info

Revision 108 - Directory Listing
Modified Fri May 2 14:38:45 2008 UTC (11 years, 6 months ago) by dpavlin
- don't insert single-value comment (corrupts model)
- comment out filter for arrays (doesn't work yet)
- create array of values for test data (which get squashed into scalar by Jifty currently)

Revision 106 - Directory Listing
Modified Thu May 1 17:06:02 2008 UTC (11 years, 6 months ago) by dpavlin
massive re-structuring to enable models specified in configuration file

- version bump [0.04]
- SyncOrganization now accept org_uid as argument
- objectClass(es) for person and organization are now in config.yml
  as well as link between them (filter on person)
- config.yml is now checked for validity in A3C::LDAP

Revision 105 - Directory Listing
Modified Thu May 1 16:31:00 2008 UTC (11 years, 6 months ago) by dpavlin
added pod usage, debug won't touch filesystem any more

Revision 103 - Directory Listing
Modified Thu May 1 14:30:06 2008 UTC (11 years, 6 months ago) by dpavlin
added command-line options and ability to pull schema from LDAP server

Example usage is now:

./bin/ldap2model.pl --model hrEduOrg

to pull hrEduOrg objectClass from LDAP server or

./bin/ldap2model.pl --model hrEduOrg --path data/all.ldif

to use ldif instead (server is prefered in on-line situations)

Revision 102 - Directory Listing
Modified Thu May 1 13:41:44 2008 UTC (11 years, 6 months ago) by dpavlin
create tests with required columns (must from LDAP) and
accessor name if not included (by default, it's id)

Revision 99 - Directory Listing
Modified Wed Apr 30 23:44:43 2008 UTC (11 years, 6 months ago) by dpavlin
create Jifty model skeleton from LDAP schema

- create all attributes from LDAP
- generate accessor for aliases in LDAP

Revision 98 - Directory Listing
Modified Wed Apr 30 21:27:54 2008 UTC (11 years, 6 months ago) by dpavlin
minimal LDAP schema to Jifty model generator

We are not using dynamic class generation (a.k.a. Jifty magic)
here because models generated this way will probably have to be
manually edited anyway.

Revision 80 - Directory Listing
Modified Fri Apr 11 23:24:59 2008 UTC (11 years, 7 months ago) by dpavlin
added Town model with data

Revision 61 - Directory Listing
Modified Wed Apr 9 21:32:34 2008 UTC (11 years, 7 months ago) by dpavlin
removed debug


Revision 60 - Directory Listing
Modified Wed Apr 2 17:38:52 2008 UTC (11 years, 7 months ago) by dpavlin
by default sync all organizastions and than users from
organization, one by one


Revision 48 - Directory Listing
Modified Mon Mar 31 21:50:52 2008 UTC (11 years, 7 months ago) by dpavlin
new API, new version [0.03]

Revision 46 - Directory Listing
Modified Sun Mar 30 22:31:27 2008 UTC (11 years, 7 months ago) by dpavlin
helper script to re-create database

Revision 44 - Directory Listing
Modified Sun Mar 30 21:59:34 2008 UTC (11 years, 7 months ago) by dpavlin
- removed limit for syncing
- specify model to sync from command line


Revision 42 - Directory Listing
Modified Sun Mar 30 16:58:21 2008 UTC (11 years, 7 months ago) by dpavlin
- move all LDAP-related logic in A3C::LDAP
- remove logic to link User and Organization
- ldap search base is now configurable in config.yml

Revision 36 - Directory Listing
Modified Sun Mar 30 00:02:18 2008 UTC (11 years, 7 months ago) by dpavlin
move LDAP stuff in own package

Revision 34 - Directory Listing
Modified Tue Mar 18 19:22:50 2008 UTC (11 years, 8 months ago) by dpavlin
much more informative messages when importing data

Revision 32 - Directory Listing
Modified Tue Mar 18 19:03:53 2008 UTC (11 years, 8 months ago) by dpavlin
- move organisations in own model
- more general ldap2model sub will try to fill model with ldap entry data

Revision 30 - Directory Listing
Modified Tue Mar 18 16:43:14 2008 UTC (11 years, 8 months ago) by dpavlin
 r32@llin:  dpavlin | 2008-03-18 17:28:45 +0100
 changed default limit to 100 users


Revision 28 - Directory Listing
Modified Mon Mar 17 21:42:21 2008 UTC (11 years, 8 months ago) by dpavlin
just blindly create record in hope of speedup


Revision 26 - Directory Listing
Modified Mon Mar 17 13:20:37 2008 UTC (11 years, 8 months ago) by dpavlin
use politically correct shift_entry which doesn't seem to decreate memory usage


Revision 25 - Directory Listing
Modified Mon Mar 17 13:06:40 2008 UTC (11 years, 8 months ago) by dpavlin
ignore objectClass by popular demand (mvela)


Revision 22 - Directory Listing
Modified Sun Mar 16 21:32:39 2008 UTC (11 years, 8 months ago) by dpavlin
- added --limit to controll number of entries imported
- fixed bind so we can transfer whole LDAP database
- better logging


Revision 17 - Directory Listing
Modified Thu Mar 13 19:21:21 2008 UTC (11 years, 8 months ago) by dpavlin
cleanup and report errors via error log


Revision 11 - Directory Listing
Modified Thu Mar 13 14:22:53 2008 UTC (11 years, 8 months ago) by dpavlin
rename application from CAdmin -> A3C, version bump [0.02]


Revision 10 - Directory Listing
Modified Thu Mar 13 14:08:41 2008 UTC (11 years, 8 months ago) by dpavlin
remove mandatory from hrEduPersonUniqueNumber and mark it as bug


Revision 9 - Directory Listing
Modified Thu Mar 13 14:00:40 2008 UTC (11 years, 8 months ago) by dpavlin
debug logging via Jifty->log->debug


Revision 8 - Directory Listing
Modified Thu Mar 13 13:49:41 2008 UTC (11 years, 8 months ago) by dpavlin
take ldap config from etc/site_config.yml


Revision 7 - Directory Listing
Modified Thu Mar 13 13:12:46 2008 UTC (11 years, 8 months ago) by dpavlin
first try at script which imports data from ldap


Revision 5 - Directory Listing
Modified Wed Mar 12 23:14:13 2008 UTC (11 years, 8 months ago) by dpavlin
more-or-less copy/paste from Net::LDAP pod


Revision 1 - Directory Listing
Added Sun Mar 9 01:42:55 2008 UTC (11 years, 8 months ago) by dpavlin
create skeleton of application with

$ jifty app --name CAdmin


  ViewVC Help
Powered by ViewVC 1.1.26