Re: duda ldapsearch
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Esteban Torres Rodríguez escribió: Buenas a todos, Necesito sacar un informe de nombres y apellidos de los usuarios en ldap, pero me he encontrado con el problema que cuando el nombre o el apellido lleva acento,ñ, etc el ldapsearch me saca un churro. Debe ser problema de codificación, pero no encuentro ningún parámetro en el ldapsearch para decirle que quiero la salida en utf8. He probado con una de estas herramientas gráficas de ldapbrowser y los muestra perfectamente, osea, que debe ser un problema del ldapsearch. Os ha pasado alguna vez? Que herramienta usais para este tipo de consultas? Buenas No uso ldap, pero he visto esto que puede valerte ( aunque me parece que en paquete de debian no esta, lo vi en un iseries) - -C charset Specifies that strings supplied as input to the ldapsearch utility are represented in a local character set (as specified by charset). String input includes the filter, the bind DN and the base DN. Similarly, when displaying data, ldapsearch converts data received from the LDAP server to the specified character set. Use the -C charset option if the input string codepage is different from the job codepage value. Refer to the ldap_set_iconv_local_charset() API to see supported charset values. Also, if the -C option and the -L option are both specified, input is assumed to be in the specified character set, but output from ldapsearch is always preserved in its UTF-8 representation, or a base-64 encoded representation of the data when non-printable characters are detected. This is the case because standard LDIF files only contain UTF-8 (or base-64 encoded UTF-8) representations of string data. Note that the supported values for charset are the same values supported for the charset tag that is optionally defined in Version 1 LDIF files. Fuente: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Frzahy%2Frzahyldapsrch.htm Un saludo - -- Si los tontos volaran, el cielo se oscurecería No me envié correos en formatos propietarios http://www.gnu.org/philosophy/no-word-attachments.es.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPO4waAAoJEOWNzQnqy+fzPF0IAJCf/4Aj58uhvXbyY+8jxIEs yAesJ1zpnDpzCr/YvqWYDZQAf77hOmpgHA75A4ydrbGdV6L7/cam/thCtkD3p1r2 a1tilxPv//X+JJERCcDroNCOAZmlKrPGtwWIY7O1wxIrIJZGctao7nFMCbd5Mn+x Xm2Wq3ncr/fhajyM8xK4TUCrH5iivYvijAcPtXf+QlZLy9jQ6DnL9aZznHvBwqZN ZYD/zm+bTo0kHayFHhAuwHm3eCMvX7eJZSKa/wmplh+YLkANVwml/yOa7Iy+pSiV tP4zoJk1fCzkbBytrO6cSt06fa99YkS+YQNBsXC1ean4qWT46r9MBt3ICsQUqMM= =x0Sz -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/blu0-smtp2141948fff6deea7a38ad16b1...@phx.gbl
Re: duda ldapsearch
2012/2/15 jmramirez (mas_ke_na) mas_ke...@hotmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Esteban Torres Rodríguez escribió: Buenas a todos, Necesito sacar un informe de nombres y apellidos de los usuarios en ldap, pero me he encontrado con el problema que cuando el nombre o el apellido lleva acento,ñ, etc el ldapsearch me saca un churro. Debe ser problema de codificación, pero no encuentro ningún parámetro en el ldapsearch para decirle que quiero la salida en utf8. He probado con una de estas herramientas gráficas de ldapbrowser y los muestra perfectamente, osea, que debe ser un problema del ldapsearch. Os ha pasado alguna vez? Que herramienta usais para este tipo de consultas? Buenas No uso ldap, pero he visto esto que puede valerte ( aunque me parece que en paquete de debian no esta, lo vi en un iseries) - -C charset Specifies that strings supplied as input to the ldapsearch utility are represented in a local character set (as specified by charset). String input includes the filter, the bind DN and the base DN. Similarly, when displaying data, ldapsearch converts data received from the LDAP server to the specified character set. Use the -C charset option if the input string codepage is different from the job codepage value. Refer to the ldap_set_iconv_local_charset() API to see supported charset values. Also, if the -C option and the -L option are both specified, input is assumed to be in the specified character set, but output from ldapsearch is always preserved in its UTF-8 representation, or a base-64 encoded representation of the data when non-printable characters are detected. This is the case because standard LDIF files only contain UTF-8 (or base-64 encoded UTF-8) representations of string data. Note that the supported values for charset are the same values supported for the charset tag that is optionally defined in Version 1 LDIF files. Fuente: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Frzahy%2Frzahyldapsrch.htm Un saludo - -- Si los tontos volaran, el cielo se oscurecería No me envié correos en formatos propietarios http://www.gnu.org/philosophy/no-word-attachments.es.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPO4waAAoJEOWNzQnqy+fzPF0IAJCf/4Aj58uhvXbyY+8jxIEs yAesJ1zpnDpzCr/YvqWYDZQAf77hOmpgHA75A4ydrbGdV6L7/cam/thCtkD3p1r2 a1tilxPv//X+JJERCcDroNCOAZmlKrPGtwWIY7O1wxIrIJZGctao7nFMCbd5Mn+x Xm2Wq3ncr/fhajyM8xK4TUCrH5iivYvijAcPtXf+QlZLy9jQ6DnL9aZznHvBwqZN ZYD/zm+bTo0kHayFHhAuwHm3eCMvX7eJZSKa/wmplh+YLkANVwml/yOa7Iy+pSiV tP4zoJk1fCzkbBytrO6cSt06fa99YkS+YQNBsXC1ean4qWT46r9MBt3ICsQUqMM= =x0Sz -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/blu0-smtp2141948fff6deea7a38ad16b1...@phx.gbl ldapsearch lo estas usando en consola fijate si teness buen seteado el set de caracteres para la consola -- MrIX Linux user number 412793. http://counter.li.org/ las grandes obras, las sueñan los santos locos, las realizan los luchadores natos, las aprovechan los felices cuerdo, y las critican los inútiles crónicos, -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALvB54bK24Difsv=fzSwvaGxYU5SPYNhUwfnufG8pRJjQq=V=a...@mail.gmail.com
Re: duda ldapsearch
si lo uso en consola env: LANG=es_ES.UTF-8 Lo podeis probar alguien para ver si también le ocurre? El día 15 de febrero de 2012 12:34, Cristian Mitchell mitchell6...@gmail.com escribió: 2012/2/15 jmramirez (mas_ke_na) mas_ke...@hotmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Esteban Torres Rodríguez escribió: Buenas a todos, Necesito sacar un informe de nombres y apellidos de los usuarios en ldap, pero me he encontrado con el problema que cuando el nombre o el apellido lleva acento,ñ, etc el ldapsearch me saca un churro. Debe ser problema de codificación, pero no encuentro ningún parámetro en el ldapsearch para decirle que quiero la salida en utf8. He probado con una de estas herramientas gráficas de ldapbrowser y los muestra perfectamente, osea, que debe ser un problema del ldapsearch. Os ha pasado alguna vez? Que herramienta usais para este tipo de consultas? Buenas No uso ldap, pero he visto esto que puede valerte ( aunque me parece que en paquete de debian no esta, lo vi en un iseries) - -C charset Specifies that strings supplied as input to the ldapsearch utility are represented in a local character set (as specified by charset). String input includes the filter, the bind DN and the base DN. Similarly, when displaying data, ldapsearch converts data received from the LDAP server to the specified character set. Use the -C charset option if the input string codepage is different from the job codepage value. Refer to the ldap_set_iconv_local_charset() API to see supported charset values. Also, if the -C option and the -L option are both specified, input is assumed to be in the specified character set, but output from ldapsearch is always preserved in its UTF-8 representation, or a base-64 encoded representation of the data when non-printable characters are detected. This is the case because standard LDIF files only contain UTF-8 (or base-64 encoded UTF-8) representations of string data. Note that the supported values for charset are the same values supported for the charset tag that is optionally defined in Version 1 LDIF files. Fuente: http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=%2Frzahy%2Frzahyldapsrch.htm Un saludo - -- Si los tontos volaran, el cielo se oscurecería No me envié correos en formatos propietarios http://www.gnu.org/philosophy/no-word-attachments.es.html -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPO4waAAoJEOWNzQnqy+fzPF0IAJCf/4Aj58uhvXbyY+8jxIEs yAesJ1zpnDpzCr/YvqWYDZQAf77hOmpgHA75A4ydrbGdV6L7/cam/thCtkD3p1r2 a1tilxPv//X+JJERCcDroNCOAZmlKrPGtwWIY7O1wxIrIJZGctao7nFMCbd5Mn+x Xm2Wq3ncr/fhajyM8xK4TUCrH5iivYvijAcPtXf+QlZLy9jQ6DnL9aZznHvBwqZN ZYD/zm+bTo0kHayFHhAuwHm3eCMvX7eJZSKa/wmplh+YLkANVwml/yOa7Iy+pSiV tP4zoJk1fCzkbBytrO6cSt06fa99YkS+YQNBsXC1ean4qWT46r9MBt3ICsQUqMM= =x0Sz -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/blu0-smtp2141948fff6deea7a38ad16b1...@phx.gbl ldapsearch lo estas usando en consola fijate si teness buen seteado el set de caracteres para la consola -- MrIX Linux user number 412793. http://counter.li.org/ las grandes obras, las sueñan los santos locos, las realizan los luchadores natos, las aprovechan los felices cuerdo, y las critican los inútiles crónicos, -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/calvb54bk24difsvfzswvagxyu5spynhuwfnufg8prjjq...@mail.gmail.com -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CA+FbNVhjszKqT3Fzw=kd_u4jktzwxgd7zdsvi2xoceef+q1...@mail.gmail.com
Re: duda ldapsearch
El Wed, 15 Feb 2012 09:10:11 +0100, Esteban Torres Rodríguez escribió: Buenas a todos, Necesito sacar un informe de nombres y apellidos de los usuarios en ldap, pero me he encontrado con el problema que cuando el nombre o el apellido lleva acento,ñ, etc el ldapsearch me saca un churro. (...) ¿Un churro = codificación en base64? :-) sm01@stt008:~$ echo ñandú | base64 w7FhbmTDugo= Si es así, podrías pasar los datos de la salida por algún decodificador de base64 a ascii. Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jhgg9n$loq$5...@dough.gmane.org
Re: duda ldapsearch
El día 15 de febrero de 2012 15:43, Camaleón noela...@gmail.com escribió: El Wed, 15 Feb 2012 09:10:11 +0100, Esteban Torres Rodríguez escribió: Buenas a todos, Necesito sacar un informe de nombres y apellidos de los usuarios en ldap, pero me he encontrado con el problema que cuando el nombre o el apellido lleva acento,ñ, etc el ldapsearch me saca un churro. (...) ¿Un churro = codificación en base64? :-) Ves por eso todos no podemos ganar lo mismo. ;) sm01@stt008:~$ echo ñandú | base64 w7FhbmTDugo= Si es así, podrías pasar los datos de la salida por algún decodificador de base64 a ascii. Gracias. He encontrado la siguiente web. http://publikaccion.blogspot.com/2008/04/codificar-y-decodificar-en-linux-base64.html Saludos, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jhgg9n$loq$5...@dough.gmane.org -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/ca+fbnvit7z2pz4eod-tdkqo3qaocurhxakdpcgcudkxkwxn...@mail.gmail.com