racktables-incomplete-works
4 years ago- add SNMP support for more 7200VXR modules described in #1371 aaron-snmp-modular
Aaron Dummer [Sat, 10 Jan 2015 23:27:38 +0000 (15:27 -0800)] 
- add SNMP support for more 7200VXR modules described in #1371
- add the 'Network module' object type
- add BNC, RJ-48C & DB-15 port types

4 years agoadd SNMP support for modular devices
Aaron Dummer [Fri, 26 Dec 2014 21:25:47 +0000 (13:25 -0800)] 
add SNMP support for modular devices
- Cisco 2801 (#779)
- Cisco 2821 (#775)
- Cisco 7206VXR (#483)
- Cisco WS-C6509-E (#338)
- Csico WS-C4503 (#528)
- HP J8698A (#351)
trigger_snmpportfinder: add support for network chassis objects
doSwitchSNMPMining: renamed to doGenericSNMPMining
generatePortsForCatModule: removed unused function
nextMACAddress: idem

display ports & IPs of contained objects (#797)
commitUpdatePort: remove superfluous $object_id parameter
findAllEndpoints: also find IPv6 endpoints
amplifyCell: retrieve child object details (names, ports, IP allocations)
getDictionaryEntry: new function to return details of a single entry
getObjectPortsAndLinks: add $include_children parameter
getObjectIPAllocationList: new wrapper function returns both IPv4 and IPv6 allocations
fetchObjectIPvNAllocationList: new generic function to return either IPv4 or IPv6 info
getObjectIPvNAllocationList: idem
getObjectIPv4AllocationList: deprecated, left for compatibility reasons
getObjectIPv6AllocationList: idem
getObjectIPv4Allocations: use getObjectIPvNAllocationList
getObjectIPv6Allocations: idem
renderObjectPortRow: migrated to renderObject, function was and would always be only used once
renderObject: display details of child objects inline
renderPortsForObject: idem
renderIPForObject: idem

5 years agoMerge pull request #82 from RackTables/revert-81-master
Alexey Andriyanov [Wed, 17 Sep 2014 05:08:45 +0000 (09:08 +0400)] 
Merge pull request #82 from RackTables/revert-81-master

Revert "add PROXMOX Server OS 3.3"

5 years agoRevert "add PROXMOX Server OS 3.3"
Alexey Andriyanov [Wed, 17 Sep 2014 05:07:33 +0000 (09:07 +0400)] 
Revert "add PROXMOX Server OS 3.3"

5 years agoMerge pull request #81 from tuxinaut/master
Alexey Andriyanov [Wed, 17 Sep 2014 05:06:38 +0000 (09:06 +0400)] 
Merge pull request #81 from tuxinaut/master

add PROXMOX Server OS 3.3

5 years agoadd PROXMOX Server OS 3.3
Denny Schäfer [Tue, 16 Sep 2014 21:12:35 +0000 (23:12 +0200)] 
add PROXMOX Server OS 3.3

5 years agoadd SNMP support for Cisco WS-C2960X-24TS-LL (#1205)
Aaron Dummer [Sat, 5 Jul 2014 21:23:15 +0000 (14:23 -0700)] 
add SNMP support for Cisco WS-C2960X-24TS-LL (#1205)

5 years agoadd SNMP support for HP J9728A (#1255)
Aaron Dummer [Sat, 5 Jul 2014 21:10:02 +0000 (14:10 -0700)] 
add SNMP support for HP J9728A (#1255)

5 years agoadd SNMP support for Linksys SRW2024P (#1183)
Aaron Dummer [Sat, 5 Jul 2014 20:54:27 +0000 (13:54 -0700)] 
add SNMP support for Linksys SRW2024P (#1183)

5 years agoadd SNMP support for HP J8693A (#1251)
Aaron Dummer [Sat, 5 Jul 2014 20:19:27 +0000 (13:19 -0700)] 
add SNMP support for HP J8693A (#1251)

5 years agoadd SNMP support for Cisco CGS-2520-24TC (#1259)
Aaron Dummer [Sat, 5 Jul 2014 19:58:03 +0000 (12:58 -0700)] 
add SNMP support for Cisco CGS-2520-24TC (#1259)

5 years agoallow 3rd-party JQ.UI autocomplete inputs
Alexey Andriyanov [Thu, 26 Jun 2014 14:09:00 +0000 (18:09 +0400)] 
allow 3rd-party JQ.UI autocomplete inputs

tag-it-local.js used to override the
.ui.autocomplete.prototype._resizeMenu handler for all autocomplete
menus.

Make it doing this only for tagit's inputs.

5 years agoproper handling of generic communication errors
Alexey Andriyanov [Sun, 22 Jun 2014 06:14:17 +0000 (10:14 +0400)] 
proper handling of generic communication errors

queryDevice: check the result is not NULL, throw RTGatewayError otherwise.

5 years agoUpdate dictionary.php
Ray Robertson [Sat, 21 Jun 2014 15:04:53 +0000 (16:04 +0100)] 
Update dictionary.php

5 years agoadd PROXMOX Server OS
Denny Schäfer [Tue, 17 Jun 2014 13:42:23 +0000 (15:42 +0200)] 
add PROXMOX Server OS

5 years agoadd some patch cable sample rows
Denis Ovsienko [Sat, 14 Jun 2014 20:22:27 +0000 (00:22 +0400)] 
add some patch cable sample rows

5 years agoUpdate dictionary.php
Ray Robertson [Fri, 13 Jun 2014 14:55:58 +0000 (15:55 +0100)] 
Update dictionary.php

5 years agoMerge pull request #65 from tuxinaut/master
Denis Ovsienko [Thu, 12 Jun 2014 10:12:04 +0000 (14:12 +0400)] 
Merge pull request #65 from tuxinaut/master

Add Univention Corporate Server OS

5 years agoadd Univention Corporate Server OS
Denny Schäfer [Wed, 11 Jun 2014 15:04:13 +0000 (17:04 +0200)] 
add Univention Corporate Server OS

5 years agoadjust hints in getPatchCableHeapCursorCode()
Denis Ovsienko [Thu, 5 Jun 2014 11:47:50 +0000 (15:47 +0400)] 
adjust hints in getPatchCableHeapCursorCode()

5 years agofix opspec for "cables-heaps-upd"
Denis Ovsienko [Thu, 5 Jun 2014 11:05:23 +0000 (15:05 +0400)] 
fix opspec for "cables-heaps-upd"

Amount is not present on the form, it is managed on a separate tab.

5 years agomake LivePTR form conditional (see #1241)
Denis Ovsienko [Thu, 5 Jun 2014 10:34:33 +0000 (14:34 +0400)] 
make LivePTR form conditional (see #1241)

* renderLivePTR(): make the form conditional: only generate the elements
  if the submit would be permitted

5 years agoMerge pull request #64 from tuxinaut/master
Denis Ovsienko [Thu, 5 Jun 2014 07:25:31 +0000 (11:25 +0400)] 
Merge pull request #64 from tuxinaut/master

Add HP ProCurve 1910-24G switch

5 years agoadd object container compatibility rules for Cisco UCS (#1245)
Aaron Dummer [Wed, 4 Jun 2014 22:10:37 +0000 (15:10 -0700)] 
add object container compatibility rules for Cisco UCS (#1245)

5 years agomove some ChangeLog lines to 0.20.8
Denis Ovsienko [Wed, 4 Jun 2014 12:38:55 +0000 (16:38 +0400)] 
move some ChangeLog lines to 0.20.8

5 years agomove the "wrt_vlans" change to 0.20.8 batch
Denis Ovsienko [Wed, 4 Jun 2014 11:37:54 +0000 (15:37 +0400)] 
move the "wrt_vlans" change to 0.20.8 batch

5 years agoignore vim stuff
Denny Schäfer [Tue, 3 Jun 2014 15:08:58 +0000 (17:08 +0200)] 
ignore vim stuff

5 years agoadd HP switch
Denny Schäfer [Tue, 3 Jun 2014 15:08:38 +0000 (17:08 +0200)] 
add HP switch

5 years agofixup charset and collation in PortOuterInterface
Denis Ovsienko [Tue, 3 Jun 2014 10:51:00 +0000 (14:51 +0400)] 
fixup charset and collation in PortOuterInterface

5 years agodictionary: add some new NEC and MikroTik devices
Denis Ovsienko [Sun, 25 May 2014 19:09:56 +0000 (23:09 +0400)] 
dictionary: add some new NEC and MikroTik devices

5 years agonew feature: patch cables accounting
Denis Ovsienko [Sun, 25 May 2014 09:05:06 +0000 (13:05 +0400)] 
new feature: patch cables accounting

This commit implements basic management of patch cables stock. It allows
for generic types of cables and connectors and comes preconfigured for
common assemblies like fiber optics, twisted pair and such. There is a
configuration page for further customization.

The user can consume/replenish an arbitrary amount of patch cables on
the cable heaps page or consume 1 cable on the port linker pop-up
through a new SELECT that suggests only the patch cable heaps compatible
with the current port type. There is a minimalistic event log for
changes in the amount.

Implementing this data model takes 6 new SQL tables with a foreign key
to the recently introduced PortOuterInterface.

* getPatchCableConnectorList(): new function
* getPatchCableTypeList(): new function
* getPatchCableConnectorOptions(): new function
* getPatchCableTypeOptions(): new function
* getPatchCableHeapSummary(): new function
* getPatchCableHeapOptionsForOIF(): new function
* getPatchCableConnectorCompat(): new function
* getPatchCableOIFCompat(): new function
* commitModifyPatchCableAmount(): new function
* commitSetPatchCableAmount(): new function
* getPatchCableHeapLogEntries(): new function
* addPatchCableHeapLogEntry(): new function
* genericAssertion(): update for "decimal" assertion type
* formatPatchCableHeapAsPlainText(): new function
* install.php: add the new SQL tables w/data
* upgrade.php: idem
* getPatchCableHeapCursorCode(): new function
* renderPatchCableHeapSummary(): new function
* renderPatchCableHeapEditor(): new function
* renderPatchCableHeapAmount(): new function
* renderSimpleTableWithOriginViewer(): new function
* renderSimpleTableWithOriginEditor(): new function
* renderPatchCableConfiguration(): new function
* renderPatchCableConnectorEditor(): new function
* renderPatchCableTypeEditor(): new function
* renderPatchCableConnectorCompatEditor(): new function
* renderPatchCableOIFCompatEditor(): new function
* navigation.php: update $indexlayout and add two new pages
* consumePatchCable(): new function
* replenishPatchCable(): new function
* setPatchCableAmount(): new function
* handlePopupPortLink(): update
* renderPopupPortSelector(): update
* triggerPatchCableHeapsConfigured(): new function

5 years agogeneralize IIF/OIF compatibility viewer and editor
Denis Ovsienko [Wed, 21 May 2014 11:11:26 +0000 (15:11 +0400)] 
generalize IIF/OIF compatibility viewer and editor

* renderTwoColumnCompatTableViewer(): new generic function
* renderIIFOIFCompat(): update to use above
* renderTwoColumnCompatTableEditor(): new generic function
* renderIIFOIFCompatEditor(): update to use above

5 years agobugfix: LLDP neighbors was empty for some Junipers
Alexey Andriyanov [Mon, 2 Jun 2014 12:00:27 +0000 (16:00 +0400)] 
bugfix: LLDP neighbors was empty for some Junipers

jun10ReadLLDPStatus: fix regexps to comply to different JunOS output
formats

5 years agoFixed interactive port menuitem 'Show all info'
xornet [Wed, 28 May 2014 12:18:58 +0000 (16:18 +0400)] 
Fixed interactive port menuitem 'Show all info'

Changed:
menuItemClicked: using global variable to spot currently clicked port

5 years agofetchAttrsForObjects: fix SQL using temp table
Alexey Andriyanov [Tue, 27 May 2014 12:39:41 +0000 (16:39 +0400)] 
fetchAttrsForObjects: fix SQL using temp table

Since fetchAttrsForObjects() is called on every listCells('object') call,
there was significant performance problem due to creation of huge temptable
and filesorting it. Sorted attr value list is needed rarely and always for
a single object, so new function getAttrValuesSorted() deals with this task now.

fetchAttrsForObjects: remove ORDER BY statement.

These funcs switched from getAttrValues() to getAttrValuesSorted():
  renderRow, renderEditRowForm, renderEditObjectForm, renderEditRackForm,
  renderRackInfoPortlet, renderObject, renderLocationPage, renderEditLocationForm.

5 years agonew per-port mac list popup menu item
xornet [Fri, 23 May 2014 16:41:31 +0000 (20:41 +0400)] 
new per-port mac list popup menu item

Add AJAX handler 'get-port-portmac' for requested port

changed:
formatPortMacHints: now can query device with getportmaclist operation for specified port
getPortInfoAJAX: new key 'get-port-portmac' in $funcmap and $opmap
switchportInfoJS: new key 'portmac' in $available_ops
navigation.php: new ajaxhandler 'get-port-portmac'
queryDevice: new function argument $args. Calls translateDeviceCommands with given args
portinfo.js:
  new menuitem 'Show port learned MACs' in menu_item_candidates
  menuItemClicked: new request data param 'port_name'
  applyMacData: Change popup-box dynamic block if it exists instead of just adding it

Conflicts:
ChangeLog

5 years agoAdd getportmaclist device operation
xornet [Fri, 16 May 2014 14:28:16 +0000 (18:28 +0400)] 
Add getportmaclist device operation

changed:
ios12TranslatePushQueue: new getportmaclist operation case
vrp53TranslatePushQueue: idem
vrp55TranslatePushQueue: idem
vrp85TranslatePushQueue: idem
ftos8TranslatePushQueue: idem
eos4TranslatePushQueue: idem
ros11TranslatePushQueue: idem
dlinkTranslatePushQueue: idem
linuxTranslatePushQueue: idem

remote.php: new $breedfunc keys {breed}-getportmaclist-main
for breeds ios12, vrp53, vrp55, vrp85, nxos4, dlink, linux, ftos8, eos4, ros11

5 years agosnmp: detectSoftwareType handles VRP 8.x
Alexey Andriyanov [Mon, 26 May 2014 10:51:52 +0000 (14:51 +0400)] 
snmp: detectSoftwareType handles VRP 8.x

5 years agoRevert "justify page title handling"
Alexey Andriyanov [Fri, 23 May 2014 16:23:57 +0000 (20:23 +0400)] 
Revert "justify page title handling"

This reverts commit d92031986522398d013e0d19f2807b2cc6b04529.

This commit causes displaying of HTML escape sequences and HTML tags
in the titles (noticed on the vlandomain, ipaddress pages).

5 years agobugfix: popup port linker was broken
Alexey Andriyanov [Fri, 23 May 2014 08:13:57 +0000 (12:13 +0400)] 
bugfix: popup port linker was broken

findSparePorts: switch to PortOuterInterface table (Dictionary was used
before)

5 years agogetPortOIFRefc: optimize query, use SQL index
Alexey Andriyanov [Thu, 22 May 2014 14:36:18 +0000 (18:36 +0400)] 
getPortOIFRefc: optimize query, use SQL index

5 years agorenderIPSpace: ignore non-existent eid error
Alexey Andriyanov [Thu, 22 May 2014 14:33:35 +0000 (18:33 +0400)] 
renderIPSpace: ignore non-existent eid error

5 years agojun10 lldp: forgot to remove debugging command
Alexey Andriyanov [Thu, 22 May 2014 12:26:38 +0000 (16:26 +0400)] 
jun10 lldp: forgot to remove debugging command

5 years agobugfix: duplicate rows in TagStorage for racks
Alexey Andriyanov [Tue, 20 May 2014 11:42:44 +0000 (15:42 +0400)] 
bugfix: duplicate rows in TagStorage for racks

When a rack is created with taglist specified, the
produceTagsForNewRecord() call took place 2 times: first from
commitAddObject with the 'object' realm, and then again from an
ophandler with the 'rack' realm.

Removed the ophandler calls to produceTagsForNewRecord() and fixed the
commitAddObject to respect pseudo-realms (racks, locations, rows)

5 years agogetLocationChildrenList: returned array should only include unique values
Aaron Dummer [Wed, 21 May 2014 20:09:52 +0000 (13:09 -0700)] 
getLocationChildrenList: returned array should only include unique values
getObjectContentsList: idem
getTagChildrenList: idem

5 years agoupdate: link status feature is available on Juniper
xornet [Tue, 13 May 2014 11:31:07 +0000 (15:31 +0400)] 
update: link status feature is available on Juniper

5 years agobugfix: Native vlan on Huawei trunk ports no longer gets to the allowed vlans list
xornet [Tue, 13 May 2014 11:19:32 +0000 (15:19 +0400)] 
bugfix: Native vlan on Huawei trunk ports no longer gets to the allowed vlans list

5 years agoupdate 1000Base-LX10 and add 1000Base-EX
Denis Ovsienko [Tue, 13 May 2014 12:00:34 +0000 (16:00 +0400)] 
update 1000Base-LX10 and add 1000Base-EX

5 years agoreplace addIIFOIFCompat() with tableHandler()
Denis Ovsienko [Sat, 10 May 2014 18:21:10 +0000 (22:21 +0400)] 
replace addIIFOIFCompat() with tableHandler()

5 years agoadd more 40G and 100G standards
Denis Ovsienko [Sat, 10 May 2014 18:12:09 +0000 (22:12 +0400)] 
add more 40G and 100G standards

5 years agosimplify argument of getPortIIFStats()
Denis Ovsienko [Sat, 10 May 2014 17:27:12 +0000 (21:27 +0400)] 
simplify argument of getPortIIFStats()

The wrapping array was of no use.

5 years agoadjust TD alignment in dictionary chapter tables
Denis Ovsienko [Sat, 10 May 2014 17:05:03 +0000 (21:05 +0400)] 
adjust TD alignment in dictionary chapter tables

Integers in a column read better aligned to the right.

5 years agomove port OIFs from dictionary to a separate table
Denis Ovsienko [Sat, 10 May 2014 13:25:56 +0000 (17:25 +0400)] 
move port OIFs from dictionary to a separate table

Port outer interfaces don't actually belong to the dictionary, the
reason for keeping that data there was to reuse the infrastructure.
However, with tableHandler() implemented that becomes less important
than missing foreign keys.

This change removes dictionary chapter 2, moves the outer interfaces
rows to a table of their own, much like the inner interfaces, and adds 3
new foreign keys that reference the new table.

* fetchPortList(): fetch data from PortOuterInterface instead of
  Dictionary
* getPortOIFCompat(): idem
* getPortInterfaceCompat(): idem
* getExistingPortTypeOptions(): idem
* getPortOIFOptions(): idem
* getPortIIFStats(): idem
* renderDataIntegrityReport(): idem and remove checks that duplicate the
  new foreign keys and update the foreign keys list
* getChapterRefc(): move POI-specific query to a new function
* getPortOIFRefc(): the new function
* dictionary.php: remove the contents of chapter 2
* functions.php: remove CHAP_PORTTYPE constant
* install.php: make the changes to schema
* upgrade.php: idem and add a section for 0.20.8
* renderPortOIFViewer(): new function
* renderPortOIFEditor(): new function
* navigation.php: register new page for POI management
* ophandlers.php: update $opspec_list for PortOuterInterface

5 years agoupdate comment for git instead of Subversion
Denis Ovsienko [Fri, 9 May 2014 20:37:58 +0000 (00:37 +0400)] 
update comment for git instead of Subversion

5 years agoadjust icons in renderEditAttributesForm()
Denis Ovsienko [Fri, 9 May 2014 11:31:50 +0000 (15:31 +0400)] 
adjust icons in renderEditAttributesForm()

5 years agointroduce getPortOIFOptions()
Denis Ovsienko [Thu, 8 May 2014 16:59:16 +0000 (20:59 +0400)] 
introduce getPortOIFOptions()

* getPortOIFOptions(): new function, although just a wrapper for
  readChapter() right now
* renderOIFCompatEditor(): update
* renderAutoPortsForm(): update
* renderIIFOIFCompatEditor(): update

5 years agotrim argument of l2addressForDatabase() (#1215)
Denis Ovsienko [Thu, 8 May 2014 12:01:38 +0000 (16:01 +0400)] 
trim argument of l2addressForDatabase() (#1215)

5 years agoupdate copyright years
Denis Ovsienko [Tue, 6 May 2014 19:01:57 +0000 (23:01 +0400)] 
update copyright years

5 years agoimprove handling of image generation errors
Denis Ovsienko [Tue, 6 May 2014 07:43:37 +0000 (11:43 +0400)] 
improve handling of image generation errors

Adjust the code flow to make the right use of exceptions: whether there
is an image generation error, instead of deciding what to do define
exactly what happened and leave the actions up to the exception handler.

* exceptions.php: introduce RTImageError exception class, make the
  inline images constants and add new images
* index.php: make sure an image exception is always an RTImageError
* renderErrorImage(): deprecate
* renderAccessDeniedImage(): deprecate
* renderProgressBarError(): deprecate
* castRackImageException(): new function, an exception class convertor
* createTrueColorOrThrow(): new function, a PHP-GD error detector
* dispatchImageRequest(): don't do any local dispatching, convert
  exceptions to RTImageError where it makes sense
* printRackThumbImage(): use createTrueColorOrThrow()
* renderProgressBarImage(): ditto, throw only RTImageError
* renderProgressBar4Image(): ditto

5 years agoadd .gitattributes for git-archive
Denis Ovsienko [Mon, 5 May 2014 13:18:00 +0000 (17:18 +0400)] 
add .gitattributes for git-archive

5 years agoadd some Dell switches
Denis Ovsienko [Mon, 5 May 2014 13:17:47 +0000 (17:17 +0400)] 
add some Dell switches

5 years agojustify page title handling
Denis Ovsienko [Mon, 5 May 2014 13:14:56 +0000 (17:14 +0400)] 
justify page title handling

getTitle(): deprecate
getPageName(): make use of niftyString()
showPathAndSearch(): idem

5 years agoMerge pull request #62 from 00willo/dict-patch1
adoom42 [Sun, 4 May 2014 16:40:39 +0000 (09:40 -0700)] 
Merge pull request #62 from 00willo/dict-patch1

Add items to dictionary

5 years agoFixed indent and id number
Graham Williamson [Sun, 4 May 2014 10:02:59 +0000 (20:02 +1000)] 
Fixed indent and id number

5 years agoAdd items to dictionary
Graham Williamson [Thu, 1 May 2014 05:32:17 +0000 (15:32 +1000)] 
Add items to dictionary

5 years agoupdate Juniper EX switches in dictionary
Graham Williamson [Fri, 25 Apr 2014 13:04:56 +0000 (17:04 +0400)] 
update Juniper EX switches in dictionary

Added some missing Juniper EX4200 series switches to dictionary. Removed
space in model entity from existing EX series switches IAW Juniper's
naming standard.

5 years agoUpdate dictionary.php
Ray Robertson [Wed, 23 Apr 2014 09:44:56 +0000 (10:44 +0100)] 
Update dictionary.php

5 years agoexplicitly require PHP version 5.3.0 or newer
Aaron Dummer [Mon, 21 Apr 2014 16:33:04 +0000 (09:33 -0700)] 
explicitly require PHP version 5.3.0 or newer

string_insert_hrefs: return to use of anonymous function

5 years agoMerge branch 'fixes-0.20.x'
Alexey Andriyanov [Sun, 20 Apr 2014 09:32:06 +0000 (13:32 +0400)] 
Merge branch 'fixes-0.20.x'

Conflicts:
ChangeLog

5 years agostring_insert_hrefs: fix PHP<5.3.0 incompatibility
Alexey Andriyanov [Sun, 20 Apr 2014 08:26:00 +0000 (12:26 +0400)] 
string_insert_hrefs: fix PHP<5.3.0 incompatibility

this fixes the #1195 issue

5 years agobugfix: renderCellList: $celllist was ignored
Alexey Andriyanov [Sun, 20 Apr 2014 08:06:06 +0000 (12:06 +0400)] 
bugfix: renderCellList: $celllist was ignored

5 years agoUpdate README with nginx and php5-fpm conf
Michał Sochoń [Mon, 31 Mar 2014 18:13:03 +0000 (20:13 +0200)] 
Update README with nginx and php5-fpm conf

I've been using Debian 7 and nginx + php5-fpm since December 2013 and
haven't noticed any issues.

The only thing that has noticeable impact is php scipt caching on nginx
side, but then admin makes it on purpose. By default this feature is not
enabled, but I've decided to add some info about it.

Added extra info for server_name variable for nginx, apparently this
surfaced after update from 0.20.6 to 0.20.7.

5 years agofinalize the previous change
Denis Ovsienko [Tue, 1 Apr 2014 06:24:35 +0000 (10:24 +0400)] 
finalize the previous change

5 years agoUpdate auth.php with LDAP option to specify port
Michał Sochoń [Mon, 31 Mar 2014 19:00:19 +0000 (21:00 +0200)] 
Update auth.php with LDAP option to specify port

We use Zentyal which used different port for LDAP read only queries, by default on port 390.

Below example configrarion, hope someone will find it helpful someday. Remember to adjust to your needs.

$LDAP_options = array
(
'server' => 'zentyal-dc.example.com',
'port' => 390,
'domain' => '',
'search_attr' => 'uid',
'search_dn' => 'dc=dir,dc=example,dc=com',
 // The following credentials will be used when searching for the user's DN:
'search_bind_rdn' => 'cn=zentyalro,dc=dir,dc=xstream,dc=dk',
'search_bind_password' => 'enter_pass_here',
'displayname_attrs' => 'cn',
'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3),
'use_tls' => 0,         // 0 == don't attempt, 1 == attempt, 2 == require
);

5 years agoFix UI reset after MGMT_PROTOS change in 0.20.6
Alex Brett [Fri, 28 Mar 2014 12:43:39 +0000 (12:43 +0000)] 
Fix UI reset after MGMT_PROTOS change in 0.20.6

In 0.20.6 TELNET_OBJS_LISTSRC, SSH_OBJS_LISTSRC, and RDP_OBJS_LISTSRC
were replaced with a single MGMT_PROTOS option, but the UI reset code
was not updated and so still attempted to reset the objects which no
longer existed...

5 years agoimprove previous commit: also fix locations
Denis Ovsienko [Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)] 
improve previous commit: also fix locations

5 years agobugfix: properly format comment text for racks
Denis Ovsienko [Wed, 26 Mar 2014 13:05:54 +0000 (17:05 +0400)] 
bugfix: properly format comment text for racks

renderRackInfoPortlet(): print [multi-line] comment inside respective
  DIV, not as plain text.

5 years agoomit password hash values from HTML
Denis Ovsienko [Thu, 20 Mar 2014 14:10:23 +0000 (18:10 +0400)] 
omit password hash values from HTML

The local user accounts management form used to use password hash value
to indicate that there is no change to the password. Stephan Rickauer
points that exposing the hash value isn't good with the rainbow tables
attack in mind. Use an empty string for that purpose instead.

* renderUserListEditor()
* updateUser()

5 years agoshortenIfName: don't lowercase "AC-in" port
Alexey Andriyanov [Tue, 4 Mar 2014 14:08:09 +0000 (18:08 +0400)] 
shortenIfName: don't lowercase "AC-in" port

5 years agoincrease wrt_vlans field length in DB VST rule
Alexey Andriyanov [Sun, 20 Apr 2014 08:41:55 +0000 (12:41 +0400)] 
increase wrt_vlans field length in DB VST rule

There could be a VLAN list longer than 255 characters
in some environments.

5 years agonew {$client_x.x.x.x} auto tag
Alexey Andriyanov [Sun, 20 Apr 2014 07:59:59 +0000 (11:59 +0400)] 
new {$client_x.x.x.x} auto tag

5 years agoUpdate README with nginx and php5-fpm conf
Michał Sochoń [Mon, 31 Mar 2014 18:13:03 +0000 (20:13 +0200)] 
Update README with nginx and php5-fpm conf

I've been using Debian 7 and nginx + php5-fpm since December 2013 and
haven't noticed any issues.

The only thing that has noticeable impact is php scipt caching on nginx
side, but then admin makes it on purpose. By default this feature is not
enabled, but I've decided to add some info about it.

Added extra info for server_name variable for nginx, apparently this
surfaced after update from 0.20.6 to 0.20.7.

5 years agofinalize the previous change
Denis Ovsienko [Tue, 1 Apr 2014 06:24:35 +0000 (10:24 +0400)] 
finalize the previous change

5 years agoUpdate auth.php with LDAP option to specify port
Michał Sochoń [Mon, 31 Mar 2014 19:00:19 +0000 (21:00 +0200)] 
Update auth.php with LDAP option to specify port

We use Zentyal which used different port for LDAP read only queries, by default on port 390.

Below example configrarion, hope someone will find it helpful someday. Remember to adjust to your needs.

$LDAP_options = array
(
'server' => 'zentyal-dc.example.com',
'port' => 390,
'domain' => '',
'search_attr' => 'uid',
'search_dn' => 'dc=dir,dc=example,dc=com',
 // The following credentials will be used when searching for the user's DN:
'search_bind_rdn' => 'cn=zentyalro,dc=dir,dc=xstream,dc=dk',
'search_bind_password' => 'enter_pass_here',
'displayname_attrs' => 'cn',
'options' => array (LDAP_OPT_PROTOCOL_VERSION => 3),
'use_tls' => 0,         // 0 == don't attempt, 1 == attempt, 2 == require
);

5 years agoFix UI reset after MGMT_PROTOS change in 0.20.6
Alex Brett [Fri, 28 Mar 2014 12:43:39 +0000 (12:43 +0000)] 
Fix UI reset after MGMT_PROTOS change in 0.20.6

In 0.20.6 TELNET_OBJS_LISTSRC, SSH_OBJS_LISTSRC, and RDP_OBJS_LISTSRC
were replaced with a single MGMT_PROTOS option, but the UI reset code
was not updated and so still attempted to reset the objects which no
longer existed...

5 years agoimprove previous commit: also fix locations
Denis Ovsienko [Wed, 26 Mar 2014 13:28:00 +0000 (17:28 +0400)] 
improve previous commit: also fix locations

5 years agobugfix: properly format comment text for racks
Denis Ovsienko [Wed, 26 Mar 2014 13:05:54 +0000 (17:05 +0400)] 
bugfix: properly format comment text for racks

renderRackInfoPortlet(): print [multi-line] comment inside respective
  DIV, not as plain text.

5 years agoadd a couple new Pica8 switches
Denis Ovsienko [Tue, 25 Mar 2014 13:35:01 +0000 (17:35 +0400)] 
add a couple new Pica8 switches

5 years agoomit password hash values from HTML
Denis Ovsienko [Thu, 20 Mar 2014 14:10:23 +0000 (18:10 +0400)] 
omit password hash values from HTML

The local user accounts management form used to use password hash value
to indicate that there is no change to the password. Stephan Rickauer
points that exposing the hash value isn't good with the rainbow tables
attack in mind. Use an empty string for that purpose instead.

* renderUserListEditor()
* updateUser()

5 years agocallScript: wrong exit code bugfix
Alexey Andriyanov [Thu, 6 Mar 2014 18:01:46 +0000 (22:01 +0400)] 
callScript: wrong exit code bugfix

5 years agoAPI to retrieve the newly created entity ID
Alexey Andriyanov [Thu, 6 Mar 2014 16:40:28 +0000 (20:40 +0400)] 
API to retrieve the newly created entity ID

When you implement a plugin that need to process the newly created
entity (by chaining after the original ophandler), you need to know the
entity id. lastInsertID() is not a choise since there may be multiple
inserts to different tables in the original ophandler.

lastCreated: new function to track or return the last created IDs
getLastCreatedId: wrapper around lastCreated(), filtering the last
created ID of a given realm.

these functions changed to call lastCreated():
commitAddObject
commitAddPort
commitCreateUserAccount
createIPv4Prefix
createIPv6Prefix
addVService
addVSG
createVLANDomain
addRStoRSPool
commitCreateRSPool
tableHandler

5 years agocallScript: export child resourse via global var
Alexey Andriyanov [Thu, 6 Mar 2014 16:31:43 +0000 (20:31 +0400)] 
callScript: export child resourse via global var

The proc_open resulting resource may be needed outside the callScript()
function if a user has signal handlers. E.g., a user may want to limit
the execution time of a gateway scipt using the pcntl_alarm(). In that
case the child process may need to be terminated explicitly using the
$script_child_res global resource.

5 years agoMerge branch 'syncdomain'
Alexey Andriyanov [Tue, 4 Mar 2014 14:22:32 +0000 (18:22 +0400)] 
Merge branch 'syncdomain'

5 years agoSNMP support for Cisco 2960X-24PS-L, 2960X-24PD-L
Alexey Andriyanov [Tue, 4 Mar 2014 14:16:54 +0000 (18:16 +0400)] 
SNMP support for Cisco 2960X-24PS-L, 2960X-24PD-L

5 years agoshortenIfName: don't lowercase "AC-in" port
Alexey Andriyanov [Tue, 4 Mar 2014 14:08:09 +0000 (18:08 +0400)] 
shortenIfName: don't lowercase "AC-in" port

5 years ago0.20.7: cut the release
Alexey Andriyanov [Mon, 3 Mar 2014 13:14:14 +0000 (17:14 +0400)] 
0.20.7: cut the release

5 years agosyncdomain: use flock, not file existence
Alexey Andriyanov [Sun, 2 Mar 2014 14:28:06 +0000 (18:28 +0400)] 
syncdomain: use flock, not file existence

There were cases when syncdomain was terminated abnormally, keeping the
lock file existing. After that the syncdomain was not able to resume
until the lockfile was deleted.

This patch uses flock(), adds ability to disable locking logic
(--nolock), and to print significant errors to the STDERR (--stderr) to inform
sysadmin using mail.

5 years agoadd Cisco Wireless Controller
Aleksandr Balezin [Thu, 27 Feb 2014 17:09:47 +0000 (21:09 +0400)] 
add Cisco Wireless Controller

5 years agomention the minimum PHP version in release notes
Denis Ovsienko [Thu, 27 Feb 2014 14:12:36 +0000 (18:12 +0400)] 
mention the minimum PHP version in release notes

5 years agoadd CentOS 5 notes to README
Denis Ovsienko [Thu, 27 Feb 2014 14:00:53 +0000 (18:00 +0400)] 
add CentOS 5 notes to README