ClearFoundation Tracker - ClearOS | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006951 | ClearOS | app-samba - Windows Networking | public | 2016-01-11 08:11 | 2016-08-29 09:40 |
Reporter | bchambers | ||||
Assigned To | user2 | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | 7.1.0 | ||||
Target Version | Fixed in Version | 7.1.0 Updates | |||
Summary | 0006951: Samba fails to initialize | ||||
Description | Community Edition on 30 day verified repos (not sure if it makes a difference). After some reports on the forums (https://www.clearos.com/clearfoundation/social/community/db-not-starting [^]) of issues, tried to duplicate this issue. My Samba did not initialize...the logs indicated this command was failing: /usr/clearos/sandbox/usr/bin/php /usr/sbin/app-samba-initialize -d CLEARSYSTEM -n MyServer -p supersecretpw Stack trace showed: Fatal - uncaught exception: exception 'clearos\apps\base\Engine_Exception' with message 'Command execution failed.' in /usr/clearos/apps/base/libraries/Shell.php:207 Stack trace: #0 /usr/clearos/apps/samba/libraries/OpenLDAP_Driver.php(2382): clearos\apps\base\Shell->execute('/usr/bin/net', 'idmap secret '*...', true, Array) 0000001 /usr/clearos/apps/samba/libraries/OpenLDAP_Driver.php(591): clearos\apps\samba\OpenLDAP_Driver->_save_idmap_password() 0000002 /usr/sbin/app-samba-initialize(171): clearos\apps\samba\OpenLDAP_Driver->initialize_samba_as_master_or_standalone('MyServer', 'CLEARSYSTEM', 'supersecretpw', false) 0000003 {main} Coming from: /usr/bin/sudo /usr/bin/net idmap secret '*' 0XpHPLZPC0tjdL4C Looks like either a bug or something changed in a samba upgrade...the new syntax is: /usr/bin/sudo /usr/bin/net idmap set secret '*' 0XpHPLZPC0tjdL4C In the samba library, function _save_idmap_password(), changing: $exitcode = $shell->Execute(self::COMMAND_NET, "idmap secret '*' $password", TRUE, $options); To $exitcode = $shell->Execute(self::COMMAND_NET, "idmap set secret '*' $password", TRUE, $options); And then going through the initialization stage then leads to success. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-01-11 08:11 | bchambers | New Issue | |||
2016-01-11 17:53 | user2 | Status | new => resolved | ||
2016-01-11 17:53 | user2 | Fixed in Version | => 7.1.0 Updates | ||
2016-01-11 17:53 | user2 | Resolution | open => fixed | ||
2016-01-11 17:53 | user2 | Assigned To | => user2 | ||
2016-08-29 09:40 | user2 | Status | resolved => closed |
There are no notes attached to this issue. |