the link download:download
ssh or sftp./bin/ls, despite the file being obviously in its right place.Tramp: Found remote shell prompt on `vattu' Omitting... (Nothing to omit) File error: Couldn't find a proper `ls' command tramp-get-ls-command: Couldn't find a proper `ls' command
/bin/ls is actually there, there is little left to do but try to see what is wrong with TRAMP. TRAMP is a fickle library and getting it to work might require serious configuration in some case. You can make TRAMP more verbose by setting the tramp-verbose to a 5 or 6, instead of the default.tramp-verbose is set, an Emacs buffer will contain a lot of informations.20:57:11 tramp-send-command (6) # while read d; do if [...]<<'EOF' /bin /usr/bin /usr/sbin /usr/local/bin EOF 20:57:11 tramp-wait-for-regexp (6) # ^M ///fec710f011d52e3acebe364b9088c96e^M 20:57:11 tramp-get-ls-command (1) # File error: Couldn't find a proper `ls' command
/bin/ls^M.(setq inhibit-eol-conversion 't) which I set to deal with files which may have mixed newline characters. Unsetting this option made TRAMP work just fine.$HOME/.emacs.d/tramp and restart Emacs. Once this was done, and inhibit-eol-conversion set, the problem happened again.
.jar including the patch. This will work on Nuxeo 5.4.0.1 and probably Nuxeo 5.4.0 but it may already be outdated as you read this article. In the download links below, you will also find the integral version of some relevant configuration files. I can’t post all the configuration files I have used because they include private informations.subGroups and parentGroups. You only need a ldapReference for the group members but they need to be searched in way different than what Nuxeo usually does.1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <component name="com.rlnx.nuxeo.ldap.group"> <implementation class="org.nuxeo.ecm.directory.ldap.LDAPDirectoryDescriptor"/> <implementation class="org.nuxeo.ecm.directory.ldap.LDAPServerDescriptor"/> <require>org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory</require> <require>com.rlnx.nuxeo.posix.schema</require> <extension target="org.nuxeo.ecm.directory.ldap.LDAPDirectoryFactory" point="directories"> <directory name="groupDirectory">... <references> <ldapReference field="members" directory="userDirectory" forceDnConsistencyCheck="false" staticAttributeId="memberUID" staticAttributeIsId="true" /> </references> </directory> </extension></component> |
staticAttributeIsId configuration which tells Nuxeo that the content of staticAttribute is an ID and not a DN. The patch then makes Nuxeo search for the members of groups accordingly.subGroups and parentGroups which are not supported by the schema. You might need to add or remove more fields to and from the UI to support your schema but the process will stay mostly the same as with those fields. Document objects, you need to redefine the user and group schemas so they are able to provide the right informations to Nuxeo.posix-ldap-user-schema.xsd).1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?xml version="1.0"?>... <xs:element name="username" type="xs:string" /> <xs:element name="password" type="xs:string" /> <xs:element name="email" type="xs:string" /> <xs:element name="firstName" type="xs:string" /> <xs:element name="lastName" type="xs:string" /> <xs:element name="company" type="xs:string" /> <xs:element name="uidNumber" type="xs:int" /> <xs:element name="gidNumber" type="xs:int" /> <xs:element name="groups" type="nxs:stringList" /></xs:schema> |
posix-ldap-group-schema.xsd).1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?xml version="1.0"?>... <xs:element name="groupname" type="xs:string" /> <xs:element name="description" type="xs:string" /> <!-- references --> <xs:element name="members" type="nxs:stringList" /> <xs:element name="gidNumber" type="xs:int" /></xs:schema> |
1 2 3 4 5 6 7 | <?xml version="1.0"?><component name="com.rlnx.nuxeo.posix.schema"> <extension target="org.nuxeo.ecm.core.schema.TypeService" point="schema"> <schema name="posix-user" src="posix-ldap-user-schema.xsd" /> <schema name="posix-group" src="posix-ldap-group-schema.xsd" /> </extension></component> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | <layout ...... <row> <widget>uidNumber</widget> </row> <row> <widget>gidNumber</widget> </row>... <widget name="uidNumber" type="text"> <labels> <label mode="any">UID</label> </labels> <fields> <field schema="posix-user">uidNumber</field> </fields> <widgetModes> <mode value="create">edit</mode> <mode value="editPassword">hidden</mode> <mode value="any">view</mode> </widgetModes> <properties widgetMode="edit"> <property name="required">true</property> <property name="styleClass">dataInputText</property> </properties> </widget> <widget name="gidNumber" type="text"> <labels> <label mode="any">GID</label> </labels> <fields> <field schema="posix-user">gidNumber</field> </fields> <widgetModes> <mode value="create">edit</mode> <mode value="editPassword">hidden</mode> <mode value="any">view</mode> </widgetModes> <properties widgetMode="edit"> <property name="required">true</property> <property name="styleClass">dataInputText</property> </properties> </widget>...</layout> |
posix-ldap-user-schema.xmlposix-ldap-schema-config.xsdposix-ldap-group-schema.xsdposix-layout-config.xmlbundles directory of your Nuxeo installation, replacing the file of the same name. Erase the earlier version of the file (5.4.0) if you are running with an older version of Nuxeo.
flashplugin-installer package.

