You can subscribe to this list here.
2000 |
Jan
|
Feb
(34) |
Mar
(9) |
Apr
|
May
(2) |
Jun
(14) |
Jul
(67) |
Aug
(34) |
Sep
(5) |
Oct
(20) |
Nov
(22) |
Dec
(31) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(15) |
Feb
(16) |
Mar
(20) |
Apr
(13) |
May
(72) |
Jun
(42) |
Jul
(41) |
Aug
(11) |
Sep
(19) |
Oct
(67) |
Nov
(59) |
Dec
(57) |
2002 |
Jan
(74) |
Feb
(69) |
Mar
(34) |
Apr
(55) |
May
(47) |
Jun
(74) |
Jul
(116) |
Aug
(68) |
Sep
(25) |
Oct
(42) |
Nov
(28) |
Dec
(52) |
2003 |
Jan
(19) |
Feb
(18) |
Mar
(35) |
Apr
(49) |
May
(73) |
Jun
(39) |
Jul
(26) |
Aug
(59) |
Sep
(33) |
Oct
(56) |
Nov
(69) |
Dec
(137) |
2004 |
Jan
(276) |
Feb
(15) |
Mar
(18) |
Apr
(27) |
May
(25) |
Jun
(7) |
Jul
(13) |
Aug
(2) |
Sep
(2) |
Oct
(10) |
Nov
(27) |
Dec
(28) |
2005 |
Jan
(22) |
Feb
(25) |
Mar
(41) |
Apr
(17) |
May
(36) |
Jun
(13) |
Jul
(22) |
Aug
(12) |
Sep
(23) |
Oct
(6) |
Nov
(4) |
Dec
|
2006 |
Jan
(11) |
Feb
(3) |
Mar
(5) |
Apr
(22) |
May
(1) |
Jun
(10) |
Jul
(19) |
Aug
(7) |
Sep
(25) |
Oct
(23) |
Nov
(5) |
Dec
(27) |
2007 |
Jan
(25) |
Feb
(17) |
Mar
(44) |
Apr
(8) |
May
(33) |
Jun
(31) |
Jul
(42) |
Aug
(16) |
Sep
(12) |
Oct
(16) |
Nov
(23) |
Dec
(73) |
2008 |
Jan
(26) |
Feb
(6) |
Mar
(46) |
Apr
(17) |
May
(1) |
Jun
(44) |
Jul
(9) |
Aug
(34) |
Sep
(20) |
Oct
(2) |
Nov
(4) |
Dec
(16) |
2009 |
Jan
(14) |
Feb
(3) |
Mar
(45) |
Apr
(52) |
May
(34) |
Jun
(32) |
Jul
(24) |
Aug
(52) |
Sep
(22) |
Oct
(23) |
Nov
(19) |
Dec
(10) |
2010 |
Jan
(10) |
Feb
(13) |
Mar
(22) |
Apr
(9) |
May
(1) |
Jun
(1) |
Jul
(8) |
Aug
(9) |
Sep
(10) |
Oct
(1) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
|
Feb
(18) |
Mar
(39) |
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jens V. <je...@da...> - 2006-04-04 10:55:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4 Apr 2006, at 11:50, Michael Str=F6der wrote: > Jens Vagelpohl wrote: >>>> Anyone else on the list should comment now(!) about the new =20 >>>> requirement >>>> for OpenLDAP libs 2.2. >> >> I have no problem with it. >> >> You'll probably end up with more support questions, though, because >> this requirement shuts out people on RH9/RHEL3/FC3 and earlier =20 >> who use >> the distribution-provided OpenLDAP. > > Yes, I expect these people to request support for OpenLDAP 2.0.x. But > people not willing to use a C compiler probably will have to stick to > older python-ldap releases anyway. ;-) Yes, absolutely, I just fear those people who have this irrational =20 urge to upgrade just for upgrading's sake if something new is =20 released, and a lot of them don't like answers such as "If you're on =20 OL 2.0.27, please use python-ldap versions <=3D 2.0.10 because the =20 newest versions won't run against your antique OpenLDAP". :P jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEMlCyRAx5nvEhZLIRAlcEAJ9qkLi35DctFo9MZzjwK+zs/ZqI3gCgkm9V klufummU/drZLg/YKMvm8xY=3D =3DoajH -----END PGP SIGNATURE----- |
From: <mi...@st...> - 2006-04-04 10:50:28
|
Jens Vagelpohl wrote: >>> Anyone else on the list should comment now(!) about the new requirement >>> for OpenLDAP libs 2.2. > > I have no problem with it. > > You'll probably end up with more support questions, though, because > this requirement shuts out people on RH9/RHEL3/FC3 and earlier who use > the distribution-provided OpenLDAP. Yes, I expect these people to request support for OpenLDAP 2.0.x. But people not willing to use a C compiler probably will have to stick to older python-ldap releases anyway. ;-) Ciao, Michael. |
From: Jens V. <je...@da...> - 2006-04-04 10:43:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 4 Apr 2006, at 11:27, Michael Str=F6der wrote: >>> Note that as already stated in CVS version of CHANGES upcoming >>> python-ldap 2.2.0 will require OpenLDAP libs 2.2.x or later for =20 >>> the build. >> >> Glad to hear that :-) Thanks! > > How soon would you need a new release version in your project? > > Anyone else on the list should comment now(!) about the new =20 > requirement > for OpenLDAP libs 2.2. I have no problem with it. You'll probably end up with more support questions, though, because =20 this requirement shuts out people on RH9/RHEL3/FC3 and earlier who =20 use the distribution-provided OpenLDAP. jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEMk3gRAx5nvEhZLIRAgNlAJ9ihSDHwO11MEoSRJh2rocRWdpQvQCguUgl Fp9U8/1waBJo3tZpAFPnQ7g=3D =3DQwLk -----END PGP SIGNATURE----- |
From: <mi...@st...> - 2006-04-04 10:28:57
|
Xin LI wrote: >=20 > 12:16 +0200=EF=BC=8CMichael Str=C3=B6der=EF=BC=9A >=20 >>Thanks for submitting the patch. >>Do you have Python code demonstrating the leak? >=20 > By searching a non-existent entry DN from LDAP server, it would end up > with the error path and got the leak. >=20 >>Do you add the ldap_msgfree(msg) because LDAPmessage_to_python() is not >>called in these error cases? >=20 > Yes. It takes me some minutes to figure out that the ldap message was > actually free'ed by LDAPmessage_to_python() in the usual path :-) Ok, will commit your patch ASAP. Ciao, Michael. |
From: <mi...@st...> - 2006-04-04 10:28:10
|
Xin LI wrote: > >>>BTW. Is there any plan to release a new version soon? >> >>I could release a new version very soon. (Despite that SF sucks and >>again I can't contact the CVS repository via SSH at the moment.) >> >>Note that as already stated in CVS version of CHANGES upcoming >>python-ldap 2.2.0 will require OpenLDAP libs 2.2.x or later for the build. > > Glad to hear that :-) Thanks! How soon would you need a new release version in your project? Anyone else on the list should comment now(!) about the new requirement for OpenLDAP libs 2.2. Ciao, Michael. |
From: Xin LI <de...@de...> - 2006-04-04 10:22:52
|
Hi, Michael, =E5=9C=A8 2006-04-04=E4=BA=8C=E7=9A=84 12:16 +0200=EF=BC=8CMichael Str=C3= =B6der=E5=86=99=E9=81=93=EF=BC=9A > Thanks for submitting the patch. > Do you have Python code demonstrating the leak? By searching a non-existent entry DN from LDAP server, it would end up with the error path and got the leak. > Do you add the ldap_msgfree(msg) because LDAPmessage_to_python() is not > called in these error cases? Yes. It takes me some minutes to figure out that the ldap message was actually free'ed by LDAPmessage_to_python() in the usual path :-) > > BTW. Is there any plan to release a new version soon? >=20 > I could release a new version very soon. (Despite that SF sucks and > again I can't contact the CVS repository via SSH at the moment.) >=20 > Note that as already stated in CVS version of CHANGES upcoming > python-ldap 2.2.0 will require OpenLDAP libs 2.2.x or later for the build= . Glad to hear that :-) Thanks! Cheers, --=20 Xin LI <delphij delphij net> http://www.delphij.net/ |
From: <mi...@st...> - 2006-04-04 10:16:47
|
Xin LI wrote: > > Here is a patch that corrects two memory leaks in python-ldap. Tracker > #1464085. Thanks for submitting the patch. Do you have Python code demonstrating the leak? Do you add the ldap_msgfree(msg) because LDAPmessage_to_python() is not called in these error cases? > BTW. Is there any plan to release a new version soon? I could release a new version very soon. (Despite that SF sucks and again I can't contact the CVS repository via SSH at the moment.) Note that as already stated in CVS version of CHANGES upcoming python-ldap 2.2.0 will require OpenLDAP libs 2.2.x or later for the build. Ciao, Michael. |
From: <mi...@st...> - 2006-03-26 13:23:20
|
Victor Fernandez wrote: > > I'm trying to delete a complete branch in a ldap server programatically. > I've found the script "deltree.py" in the documentation of the package > python-ldap, but I haven't found the way to execute it, because it > complains about the module "ldap.res"... Uuumh. This should have never been added to CVS. I removed it. Maybe you can tweak it to use ldap.async (like web2ldap does). > To what module is refering? ldap.res was planned to be a better implementation of what ldap.async provides but was never finished. I tend more to use ldap.resiter which is not finished either. But it seems I already moved examples from Demo/Lib/ldap/async/ to Demo/Lib/ldap/res/. I've reverted this change. Please test the CVS scripts. Ciao, Michael. |
From: Victor F. <vic...@up...> - 2006-03-15 10:10:51
|
Hello, I'm trying to delete a complete branch in a ldap server programatically. I've found the script "deltree.py" in the documentation of the package python-ldap, but I haven't found the way to execute it, because it complains about the module "ldap.res"... To what module is refering? Thanks in advance. -- ---------------------------------------------- Víctor Fernández de Alba Encinas Projectes Tecnològics UPCnet Edifici Màster's - Pedro i Pons, 9, 9è 08034 BARCELONA Tel. centraleta: 93 401 16 00 ---------------------------------------------- |
From: Glenn B. <gl...@ca...> - 2006-03-04 16:36:12
|
I'm actually not encoding the attribute values, Fedora Directory is, =20 so I'm just trying to find a way to deal with it. I'm just trying to =20 find out how to get the values in any form so I can work with them. =20 The return object does not contain the encoded values at all. My current search base is: base_dn =3D ou=3D<groupname>,o=3Dcaltech,c=3Dus The search can be anything and it gives the same problem. For example search =3D '(uid=3D<usename>)' Thanks for responding. Glenn On Mar 4, 2006, at 5:28 AM, Bjorn Ove Grotan wrote: > Glenn W. Bach: >> I am doing a search: >> >> ldap_obj.search_s(base_dn, ldap.SCOPE_SUBTREE, search) >> >> and I find that the base64 encoded attributes are not returning. They >> return just fine in php and with openldap's ldapsearch, but are =20 >> absent with >> python-ldap with the command above. Is there a mechanism by which =20 >> I can >> retrieve the base64 encoded attributes? > > python-ldap uses the api directly, and there's no need for base64-=20 > encoded > attribute values. use utf-8 directly as its the way ldap stores its =20= > data anyways. > > It would help for later reference, if you also stated the value of =20 > base_dn and search > next time. > > --=20 > Regards > > Bj=F8rn Ove Gr=F8tan > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting =20 > language > that extends applications into web and mobile media. Attend the =20 > live webcast > and join the prime developer group breaking into this new coding =20 > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=121642= > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Bjorn O. G. <bjo...@it...> - 2006-03-04 13:29:04
|
Glenn W. Bach: > I am doing a search: >=20 > ldap_obj.search_s(base_dn, ldap.SCOPE_SUBTREE, search) >=20 > and I find that the base64 encoded attributes are not returning. They=20 > return just fine in php and with openldap's ldapsearch, but are absent = with=20 > python-ldap with the command above. Is there a mechanism by which I can= =20 > retrieve the base64 encoded attributes? python-ldap uses the api directly, and there's no need for base64-encoded= =20 attribute values. use utf-8 directly as its the way ldap stores its data = anyways. It would help for later reference, if you also stated the value of base_d= n and search next time.=20 --=20 Regards =20 Bj=F8rn Ove Gr=F8tan |
From: Glenn W. B. <gl...@ca...> - 2006-03-03 21:06:58
|
I am doing a search: ldap_obj.search_s(base_dn, ldap.SCOPE_SUBTREE, search) and I find that the base64 encoded attributes are not returning. They return just fine in php and with openldap's ldapsearch, but are absent with python-ldap with the command above. Is there a mechanism by which I can retrieve the base64 encoded attributes? Thanks. Glenn |
From: tiksin <ti...@fr...> - 2006-02-03 14:03:20
|
Le Vendredi 3 F=E9vrier 2006 10:02, tiksin a =E9crit=A0: > I compil python-ldap 2.0.10 on FEEBSD6.0 with openldap 2.3.11 (seveur and > client). > When i import the ldapmodule i have the following error message: > > --=A0=A0=A0=A0Import Error: libldap_r-2.3.so.1 Undefined symbol=20 "pthread_attr_destroy" All compile correctly on my desktop (ubuntu). I guess the problem is with=20 freebsd6.0 thread support. I will post on freebsd-mailing list Thanks, |
From: bruno G. <bg...@um...> - 2006-02-03 13:58:38
|
Le Vendredi 3 F=E9vrier 2006 10:02, tiksin a =E9crit=A0: > I compil python-ldap 2.0.10 on FEEBSD6.0 with openldap 2.3.11 (seveur and > client). > When i import the ldapmodule i have the following error message: > > -- Import Error: libldap_r-2.3.so.1 Undefined symbol "pthread_attr_destro= y" All compile correctly on my desktop (ubuntu). I guess the problem is with=20 freebsd6.0 thread support. I will post on freebsd-mailing list Thanks, |
From: tiksin <ti...@fr...> - 2006-02-03 09:02:42
|
Hi, It's my first post on the list and my english is bad, so sorry !! I compil python-ldap 2.0.10 on FEEBSD6.0 with openldap 2.3.11 (seveur and client). When i import the ldapmodule i have the following error message: -- Import Error: libldap_r-2.3.so.1 Undefined symbol "pthread_attr_destroy" Any idea ! Thanks. |
From: Timur I. <Tim...@oi...> - 2006-01-30 12:58:08
|
Hi, I would advice asking in Zope mailing list (zo...@zo...). It's very active and high traffic. -- Timur Izhbulatov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:Tim...@oi... Building Successful Supply Chains - One Solution At A Time. www.oilspace.com |
From: Jens V. <je...@da...> - 2006-01-30 12:53:17
|
On 30 Jan 2006, at 08:58, sre...@it... wrote: > Sir, > I have installed > zope version 2.8.2 > python version 2.3.5 > LDAP User folder2_5 > python_ldap 2.0.4 > I tried import ldap and its worked with out any error. > When i tried to add LDAPUserFolder using ZMI, i have put the correct > parameters for conncting openldap server.But the LDAPUserfolder is > not get > added in the zmi, also i am not getting any error messages. When i > tried > to add LDAPGroupUserFolder i get Attibute erron on ZMI.Hope u can > suggest > valid > solutions for fix this problem. This is not the correct list for your problem. Please post to zo...@zo... and *always* include complete tracebacks with your error reports. jens |
From: <sre...@it...> - 2006-01-30 08:58:51
|
Sir, I have installed zope version 2.8.2 python version 2.3.5 LDAP User folder2_5 python_ldap 2.0.4 I tried import ldap and its worked with out any error. When i tried to add LDAPUserFolder using ZMI, i have put the correct parameters for conncting openldap server.But the LDAPUserfolder is not get added in the zmi, also i am not getting any error messages. When i tried to add LDAPGroupUserFolder i get Attibute erron on ZMI.Hope u can suggest valid solutions for fix this problem. cheers sreenath |
From: Timur I. <Tim...@oi...> - 2006-01-24 09:37:01
|
Hi, Recently I've found that SimpleLDAPObject.passwd doesn't adhere RFC 3062: PasswdModifyRequestValue ::= SEQUENCE { userIdentity [0] OCTET STRING OPTIONAL oldPasswd [1] OCTET STRING OPTIONAL newPasswd [2] OCTET STRING OPTIONAL } But in Lib/ldap/ldapobject.py: def passwd(self,user,oldpw,newpw,serverctrls=None,clientctrls=None): And in Modules/LDAPObject.c: if (!PyArg_ParseTuple( args, "s#s#s#|OO", &user.bv_val, &user_len, &oldpw.bv_val, &oldpw_len, &newpw.bv_val, &newpw_len, &serverctrls, &clientctrls )) // ... ldaperror = ldap_passwd( self->ldap, &user, &oldpw, &newpw, server_ldcs, client_ldcs, &msgid ); So I attach a patch to correct the situation. The only problem I've found is when newpw is None Python passwd_s method doesn't return generated password in result as native function does. This doesn't affect my code but it's obviously a problem. Any suggestions? The OpenLDAP libldap does adhere the RFC and works as expected with NULL pointers in place of &user, &oldpw and &newpw. -- Timur Izhbulatov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:Tim...@oi... Building Successful Supply Chains - One Solution At A Time. www.oilspace.com |
From: Fabio <fab...@du...> - 2006-01-20 11:08:46
|
hi! I solved my problem setting in slapd.conf "schemacheck off". In nis.schema there is: attributetype ( 1.3.6.1.1.1.1.12 NAME 'memberUid' EQUALITY caseExactIA5Match SUBSTR caseExactIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) objectclass ( 1.3.6.1.1.1.2.2 NAME 'posixGroup' SUP top STRUCTURAL DESC 'Abstraction of a group of accounts' MUST ( cn $ gidNumber ) MAY ( userPassword $ memberUid $ description ) ) Is this right? How I can change it to accept multiple memberUid? Thanks, Fabio > hi! > > I have a problem: I have to add a memberUid attribute in ldap directory > and I use modify_s() and MOD_ADD but I get this error: > {'info': 'modify/add: memberUid: value #0 already exists', 'desc': 'Typ= e > or value exists'} > > I know that another memberUid exists but I have to add another one. > > In docs (http://csci.mrs.umn.edu/twiki/view/Dungeon/PythonLDAP) I see: > Objects can have more than one value of the same type. For instance, gr= oup > objects have a memberUid entry for each user that is in them. Use MOD_A= DD > to add new entries, and MOD_REPLACE to change the value of entries. > > I use ldap 2.2.23-8 (sarge) and samba. > > A group can have multiple memberUids or not? > > Thanks in advance, > Fabio > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=103432&bid#0486&dat=12164= 2 > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |
From: Fabio <fab...@du...> - 2006-01-20 10:51:58
|
hi! I have a problem: I have to add a memberUid attribute in ldap directory and I use modify_s() and MOD_ADD but I get this error: {'info': 'modify/add: memberUid: value #0 already exists', 'desc': 'Type or value exists'} I know that another memberUid exists but I have to add another one. In docs (http://csci.mrs.umn.edu/twiki/view/Dungeon/PythonLDAP) I see: Objects can have more than one value of the same type. For instance, grou= p objects have a memberUid entry for each user that is in them. Use MOD_ADD to add new entries, and MOD_REPLACE to change the value of entries. I use ldap 2.2.23-8 (sarge) and samba. A group can have multiple memberUids or not? Thanks in advance, Fabio |
From: Rakotomandimby M. <mih...@et...> - 2006-01-04 22:42:23
|
> Do you even have the parent entry in your database? e.g this > ldif-representation: > > # Top root node in your D.I.T > dn: dc=localdomain > objectClass: top > objectClass: dcObject > dc: localdomain > > if not, try add it with ldapadd or slapadd from commandline first. Well. I did not have it. You're right. > I find it very handy to try making shure I'm able to do the most basic > things with commandline tools if I get any errors that don't make > sence to me using the ldap-api directly. > Its a good excersize to play around with ldapadd and ldapmodify working > with plain old ldif-files on commandline to get the grips of how LDAP > works. It's a point of view. The "low-level->high-level" is a good idea to me. But some of our teachers think that the best one would be "high-level->low-level". That is why they introduce algorithm and programation with OCaml and or Python but not with C. As well as you are here and advice me, I wil follow you, but my teachers tell me the opposite :-) Thank you for your help anyway. -- A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source & GPL). Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better. http://www.cps-project.org for downloads & documentation. Free hosting of CPS groupware: http://www.objectis.org. |
From: Bjorn O. G. <bjo...@it...> - 2006-01-04 21:54:02
|
Rakotomandimby Mihamina: > Hi, > Following > http://www.grotan.com/ldap/python-ldap-samples.html#add >=20 > I made this: >=20 > ############################################# > import ldap > import ldap.modlist as modlist > moi=3D"cn=3DManager,dc=3Dlocaldomain" > l =3D ldap.initialize("ldap://localhost:389/") > l.simple_bind_s(moi,"mypassword") > attrs=3D{} > attrs['objectclass'] =3D > ['top','organizationalRole','simpleSecurityObject'] > attrs['cn'] =3D 'user1' > attrs['userPassword'] =3D 'user1user1' > attrs['description'] =3D 'User object for replication using slurpd' > ldif =3D modlist.addModlist(attrs) > dn=3D"cn=3Duser1,dc=3Dlocaldomain" Do you even have the parent entry in your database? e.g this ldif-representation: # Top root node in your D.I.T dn: dc=3Dlocaldomain objectClass: top objectClass: dcObject dc: localdomain if not, try add it with ldapadd or slapadd from commandline first. I find it very handy to try making shure I'm able to do the most basic things with commandline tools if I get any errors that don't make sence to me using the ldap-api directly. Its a good excersize to play around with ldapadd and ldapmodify working with plain old ldif-files on commandline to get the grips of how LDAP works. > l.add_s(dn,ldif) > ############################################# >=20 > Ans I get this error: >=20 > In [31]: l.add_s(dn,ldif) > -----------------------------------------------------------------------= ---- > ldap.NO_SUCH_OBJECT Traceback (most recent > call last) --=20 regards =20 Bj=F8rn Ove Gr=F8tan |
From: Rakotomandimby M. <mih...@et...> - 2006-01-04 18:58:17
|
Hi, Following http://www.grotan.com/ldap/python-ldap-samples.html#add I made this: ############################################# import ldap import ldap.modlist as modlist moi="cn=Manager,dc=localdomain" l = ldap.initialize("ldap://localhost:389/") l.simple_bind_s(moi,"mypassword") attrs={} attrs['objectclass'] = ['top','organizationalRole','simpleSecurityObject'] attrs['cn'] = 'user1' attrs['userPassword'] = 'user1user1' attrs['description'] = 'User object for replication using slurpd' ldif = modlist.addModlist(attrs) dn="cn=user1,dc=localdomain" l.add_s(dn,ldif) ############################################# Ans I get this error: In [31]: l.add_s(dn,ldif) --------------------------------------------------------------------------- ldap.NO_SUCH_OBJECT Traceback (most recent call last) /home/mihamina/programmation/ldap/<console> /usr/lib/python2.4/site-packages/ldap/ldapobject.py in add_s(self, dn, modlist) 161 def add_s(self,dn,modlist): 162 msgid = self.add(dn,modlist) --> 163 self.result(msgid,all=1,timeout=self.timeout) 164 165 def simple_bind(self,who='',cred='',serverctrls=None,clientctrls=None): /usr/lib/python2.4/site-packages/ldap/ldapobject.py in result(self, msgid, all, timeout) 397 polling (timeout = 0), in which case (None, None) is returned. 398 """ --> 399 res_type,res_data,res_msgid = self.result2(msgid,all,timeout) 400 return res_type,res_data 401 /usr/lib/python2.4/site-packages/ldap/ldapobject.py in result2(self, msgid, all, timeout) 403 if timeout is None: 404 timeout = self.timeout --> 405 return self._ldap_call(self._l.result2,msgid,all,timeout) 406 407 def search_ext(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,serverctrls=None,clientctrls=None,timeout=-1,sizelimit=0): /usr/lib/python2.4/site-packages/ldap/ldapobject.py in _ldap_call(self, func, *args, **kwargs) 92 try: 93 try: ---> 94 result = func(*args,**kwargs) 95 finally: 96 self._ldap_object_lock.release() NO_SUCH_OBJECT: {'info': '', 'desc': 'No such object'} -- A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source & GPL). Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better. http://www.cps-project.org for downloads & documentation. Free hosting of CPS groupware: http://www.objectis.org. |
From: Bjorn O. G. <bjo...@it...> - 2006-01-03 18:22:12
|
Rakotomandimby Mihamina: > Hi, > I saw that many tutorials introducing python-ldap are about lookup and > editing entries. There is a few documents about addin entries. > I concluded the "way to do it" is about adding a simple entry, and then > edit it... > Would you have any other documentation about adding entry? > I am more french speaking and would rather begin with introductional > tutorial first, then go on with official documentation. Tutorial: http://www.grotan.com/ldap/python-ldap-samples.html Based on http://homepage.mac.com/mengelhart/python-ldap-samples.html and added section for add and modify. Online documentation: http://python-ldap.sourceforge.net/doc/python-ldap/ldap-objects.html I suggest you open the pydoc-generated ^^^^ and download the source and look in the Demo-directory for more examples on how to use python-ldap in different scenarios. You can also look at and download luma.sf.net and see how its done there. --=20 Regards =20 Bj=F8rn Ove Gr=F8tan |